<commit_before>logrotate:
  zeoclient_event:
    conf_file: /etc/logrotate.d/zeoclient_event
    name: /usr/local/Plone/zeocluster/var/client1/event.log
    options:
      - rotate 3
      - monthly
      - prerotate /usr/local/Plone/zeocluster/var/client1/bin stop
      - postrotate /usr/local/Plone/zeocluster/var/client1/bin start
  zeoclient_z2:
    conf_file: /etc/logrotate.d/zeoclient_z2
    name: /usr/local/Plone/zeocluster/var/client1/Z2.log
    options:
      - rotate 3
      - monthly
      - prerotate /usr/local/Plone/zeocluster/var/client1/bin stop
      - postrotate /usr/local/Plone/zeocluster/var/client1/bin start
  {% if salt.grains.get('id') == 'ocw-production-cms-2' %}
  ocw_publishing_logs:
    conf_file: /etc/logrotate.d/ocw_publishing_logs
    name: /prod/OCWEngines/logs/*.{log|out}
    options:
      - rotate 3
      - monthly
      - prerotate /usr/local/Plone/zeocluster/var/client1/bin stop && kill $(ps aux | grep python | awk '{print $2}')
      - postrotate /usr/local/Plone/zeocluster/var/client1/bin start && nohup python enginescheduler.py PRODUCTION > /prod/OCWEngines/logs/production_nohup.log && nohup python enginescheduler.py CETOOL > /prod/OCWEngines/logs/cetool_nohup.out && nohup python enginescheduler.py MIRRORUPDATE > /prod/OCWEngines/logs/mirror_nohup.out
  {% endif %}
  zeoserver:
    conf_file: /etc/logrotate.d/zeoserver
    name: /usr/local/Plone/zeocluster/var/zeoserver/zeoserver.log
    options:
      - rotate 3
      - monthly
      - copytruncate
      - notifempty<commit_msg>Change logrotate params for OCW Plone<commit_after>logrotate:
  zeoclient_event:
    conf_file: /etc/logrotate.d/zeoclient
    name: /usr/local/Plone/zeocluster/var/client1/event.log
    options:
      - rotate 3
      - monthly
      - copytruncate
      - notifempty
      - compress
      - delaycompress
  zeoclient_z2:
    conf_file: /etc/logrotate.d/zeoclient
    name: /usr/local/Plone/zeocluster/var/client1/Z2.log
    options:
      - rotate 3
      - monthly
      - copytruncate
      - notifempty
      - compress
      - delaycompress
  {% if salt['file.directory_exists']('/mnt/ocwfileshare/OCWEngines') %}
  ocw_publishing_logs:
    conf_file: /etc/logrotate.d/ocw_publishing_logs
    name: /mnt/ocwfileshare/OCWEngines/logs/*.{log|out}
    options:
      - rotate 3
      - monthly
      - copytruncate
      - notifempty
      - compress
      - delaycompress
  {% endif %}
  zeoserver:
    conf_file: /etc/logrotate.d/zeoserver
    name: /usr/local/Plone/zeocluster/var/zeoserver/zeoserver.log
    options:
      - rotate 3
      - monthly
      - copytruncate
      - notifempty
      - compress
      - delaycompress
{'fraction_non_alphanumeric': 0.11243929772132985, 'fraction_numerical': 0.009338812103100485, 'mean_word_length': 2.5144356955380576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2107011', 'n_tokens_mistral': 1024, 'n_tokens_neox': 966, 'n_words': 144}