<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Syslog path (/opt/syslog) is full on rsyslog server? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461130#M79587</link>
    <description>&lt;P&gt;Under /etc/logrotate.d/splunk on syslog server I have the below configuration:&lt;/P&gt;

&lt;P&gt;/data/syslog/network/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;.log&lt;BR /&gt;
/data/syslog/network/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;.log&lt;BR /&gt;
/data/syslog/security/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;.log&lt;BR /&gt;
/data/syslog/security/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;.log&lt;BR /&gt;
/data/syslog/security/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;.log {&lt;BR /&gt;
    daily&lt;BR /&gt;
    rotate 1&lt;BR /&gt;
    compress&lt;BR /&gt;
    missingok&lt;BR /&gt;
    notifempty&lt;BR /&gt;
    nocreate&lt;BR /&gt;
    postrotate&lt;BR /&gt;
        systemctl reload-or-restart rsyslog.service&lt;BR /&gt;
        systemctl reset-failed rsyslog.service&lt;BR /&gt;
    endscript&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;And I have size for /opt/syslog partition 296G.&lt;/P&gt;

&lt;P&gt;How can change this configuration when this partition arrived 200G for make the logrotate?&lt;/P&gt;

&lt;P&gt;appreciate your support in that?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2019 05:11:53 GMT</pubDate>
    <dc:creator>aalhabbash1</dc:creator>
    <dc:date>2019-08-26T05:11:53Z</dc:date>
    <item>
      <title>Syslog path (/opt/syslog) is full on rsyslog server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461124#M79581</link>
      <description>&lt;P&gt;Hi Splunker;&lt;/P&gt;

&lt;P&gt;The syslog server  store any logs coming to it by syslog on files as .log file then Splunk read this logs from this file and store the logs, when this file start to full Splunk convert this file to .gz file to available the space for restore another logs on .log file another time.&lt;/P&gt;

&lt;P&gt;Can I make (/opt/syslog) path 80% used not 100% to avoid such alerts and focus on real issues.&lt;/P&gt;

&lt;P&gt;Best Regards;&lt;BR /&gt;
Abdullah Al-Habbash&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 06:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461124#M79581</guid>
      <dc:creator>aalhabbash1</dc:creator>
      <dc:date>2019-08-25T06:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog path (/opt/syslog) is full on rsyslog server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461125#M79582</link>
      <description>&lt;P&gt;This is not a Splunk problem.  The .gz files are created by Linux utilities, not by Splunk.  You must employ other Linux utilities (perhaps Logrotate) to ensure disk space does not become 100% utilized.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 12:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461125#M79582</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-08-25T12:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog path (/opt/syslog) is full on rsyslog server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461126#M79583</link>
      <description>&lt;P&gt;There is 0 correct way to use logrotate with syslog AND splunk.  It just wasn't designed for the chore.&lt;/P&gt;

&lt;P&gt;Better to write your own script for log rotation. those who have found "success" with this have data loss and don't know it.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 12:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461126#M79583</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-08-25T12:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog path (/opt/syslog) is full on rsyslog server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461127#M79584</link>
      <description>&lt;P&gt;@jkat54 interesting that you would say that. Could you please give us some more details and references ? &lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 13:33:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461127#M79584</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-08-25T13:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog path (/opt/syslog) is full on rsyslog server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461128#M79585</link>
      <description>&lt;P&gt;I may have jumped the gun here.  Every implementation I've seen had a step to restart syslog. &lt;/P&gt;

&lt;P&gt;I suppose if you told logrotate to only rotate files seen more than once AND you make syslog write files with date time stamps, you could have success.  But in my experience there were file handles open everywhere, racing conditions between splunk monitor and syslog and logrotate, etc.  &lt;/P&gt;

&lt;P&gt;I've never seen one setup with all three that wasn't dropping data at some point or causing other unforeseen issues.&lt;/P&gt;

&lt;P&gt;I just steer clear, my opinion I suppose.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 14:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461128#M79585</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-08-25T14:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog path (/opt/syslog) is full on rsyslog server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461129#M79586</link>
      <description>&lt;P&gt;Yeah totally agree with you on this : "in my experience there were file handles open everywhere, racing conditions between splunk monitor and syslog and logrotate, etc." ... and the lower the time interval is on the rotation the more chance data loss could occur.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 14:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461129#M79586</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-08-25T14:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog path (/opt/syslog) is full on rsyslog server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461130#M79587</link>
      <description>&lt;P&gt;Under /etc/logrotate.d/splunk on syslog server I have the below configuration:&lt;/P&gt;

&lt;P&gt;/data/syslog/network/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;.log&lt;BR /&gt;
/data/syslog/network/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;.log&lt;BR /&gt;
/data/syslog/security/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;.log&lt;BR /&gt;
/data/syslog/security/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;.log&lt;BR /&gt;
/data/syslog/security/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;.log {&lt;BR /&gt;
    daily&lt;BR /&gt;
    rotate 1&lt;BR /&gt;
    compress&lt;BR /&gt;
    missingok&lt;BR /&gt;
    notifempty&lt;BR /&gt;
    nocreate&lt;BR /&gt;
    postrotate&lt;BR /&gt;
        systemctl reload-or-restart rsyslog.service&lt;BR /&gt;
        systemctl reset-failed rsyslog.service&lt;BR /&gt;
    endscript&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;And I have size for /opt/syslog partition 296G.&lt;/P&gt;

&lt;P&gt;How can change this configuration when this partition arrived 200G for make the logrotate?&lt;/P&gt;

&lt;P&gt;appreciate your support in that?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 05:11:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461130#M79587</guid>
      <dc:creator>aalhabbash1</dc:creator>
      <dc:date>2019-08-26T05:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog path (/opt/syslog) is full on rsyslog server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461131#M79588</link>
      <description>&lt;P&gt;You can use the &lt;CODE&gt;size&lt;/CODE&gt; option :&lt;BR /&gt;
&lt;A href="https://linux.die.net/man/8/logrotate"&gt;https://linux.die.net/man/8/logrotate&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 07:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461131#M79588</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-08-26T07:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog path (/opt/syslog) is full on rsyslog server?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461132#M79589</link>
      <description>&lt;P&gt;You can't use logrotate to move data once the filesystem is at x GB in size.&lt;/P&gt;

&lt;P&gt;You can write a shell script that uses a combination of df -h, grep, awk, mv, gzip, etc. though.  I doubt anyone here is going to write that for you though.&lt;/P&gt;

&lt;P&gt;You should try a Linux forum, not a splunk forum.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 11:46:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-path-opt-syslog-is-full-on-rsyslog-server/m-p/461132#M79589</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-08-26T11:46:07Z</dc:date>
    </item>
  </channel>
</rss>

