<?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 Why are syslog files are not being deleted? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646088#M109911</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I am having the syslog files from my Cisco Callmanager stored in my Ubuntu 22.04 using rsyslog in the path /home/splunk/syslog/. I have set up a corresponding input in my Splunk Enterprise:&lt;/P&gt;
&lt;P&gt;[batch:///home/splunk/cdr/cdr_*]&lt;BR /&gt;index = cisco_cdr&lt;BR /&gt;move_policy = sinkhole&lt;BR /&gt;sourcetype = cucm_cdr&lt;BR /&gt;disabled = false&lt;/P&gt;
&lt;P&gt;[batch:///home/splunk/cdr/cmr_*]&lt;BR /&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;BR /&gt;index = cisco_cdr&lt;BR /&gt;move_policy = sinkhole&lt;BR /&gt;sourcetype = cucm_cmr&lt;BR /&gt;disabled = false&lt;/P&gt;
&lt;P&gt;[monitor:///home/splunk/syslog/*]&lt;BR /&gt;disabled = false&lt;BR /&gt;index = cisco_syslog&lt;BR /&gt;sourcetype = cucm_syslog&lt;BR /&gt;move_policy = sinkhole&lt;/P&gt;
&lt;P&gt;The syslogs are being ingested into the database, but the files are not being deleted.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2023-06-07 um 12.48.55.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25730i13011CDF11F32745/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bildschirmfoto 2023-06-07 um 12.48.55.png" alt="Bildschirmfoto 2023-06-07 um 12.48.55.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does anyone have an idea of what I might have done wrong?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 12:25:44 GMT</pubDate>
    <dc:creator>n37w0rk</dc:creator>
    <dc:date>2023-06-07T12:25:44Z</dc:date>
    <item>
      <title>Why are syslog files are not being deleted?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646088#M109911</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I am having the syslog files from my Cisco Callmanager stored in my Ubuntu 22.04 using rsyslog in the path /home/splunk/syslog/. I have set up a corresponding input in my Splunk Enterprise:&lt;/P&gt;
&lt;P&gt;[batch:///home/splunk/cdr/cdr_*]&lt;BR /&gt;index = cisco_cdr&lt;BR /&gt;move_policy = sinkhole&lt;BR /&gt;sourcetype = cucm_cdr&lt;BR /&gt;disabled = false&lt;/P&gt;
&lt;P&gt;[batch:///home/splunk/cdr/cmr_*]&lt;BR /&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;BR /&gt;index = cisco_cdr&lt;BR /&gt;move_policy = sinkhole&lt;BR /&gt;sourcetype = cucm_cmr&lt;BR /&gt;disabled = false&lt;/P&gt;
&lt;P&gt;[monitor:///home/splunk/syslog/*]&lt;BR /&gt;disabled = false&lt;BR /&gt;index = cisco_syslog&lt;BR /&gt;sourcetype = cucm_syslog&lt;BR /&gt;move_policy = sinkhole&lt;/P&gt;
&lt;P&gt;The syslogs are being ingested into the database, but the files are not being deleted.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2023-06-07 um 12.48.55.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25730i13011CDF11F32745/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bildschirmfoto 2023-06-07 um 12.48.55.png" alt="Bildschirmfoto 2023-06-07 um 12.48.55.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Does anyone have an idea of what I might have done wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 12:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646088#M109911</guid>
      <dc:creator>n37w0rk</dc:creator>
      <dc:date>2023-06-07T12:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog files are not being deleted</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646092#M109912</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243165"&gt;@n37w0rk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you're speaking of the files in "&lt;SPAN&gt;/home/splunk/syslog", you're using the monitor command that reads files but doesn't delete them after reading.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to delete, you have to use batch instead monitor also in this stanza.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 11:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646092#M109912</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-07T11:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog files are not being deleted</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646094#M109913</link>
      <description>&lt;P&gt;Hello Giuseppe,&lt;/P&gt;&lt;P&gt;thank you for your response. I had already tested that and now I have switched it back to BATCH and manually deleted all syslog files. After a system restart, the syslog files are being incremented again and not deleted.&lt;/P&gt;&lt;P&gt;Krgds Björn&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 11:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646094#M109913</guid>
      <dc:creator>n37w0rk</dc:creator>
      <dc:date>2023-06-07T11:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog files are not being deleted</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646098#M109915</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243165"&gt;@n37w0rk&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Check the rsyslog configuration: does it write always on the same file or does it used a filename with date and time?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 12:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646098#M109915</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-07T12:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog files are not being deleted</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646100#M109916</link>
      <description>&lt;P&gt;Hello Giuseppe,&lt;/P&gt;&lt;P&gt;a new file is being created for each syslog event. Attached is my rsyslog configuration. I have been considering changing $FileOwner and $FileGroup to "splunk."&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;#################&lt;BR /&gt;#### MODULES ####&lt;BR /&gt;#################&lt;/P&gt;&lt;P&gt;module(load="imuxsock") # provides support for local system logging&lt;BR /&gt;#module(load="immark") # provides --MARK-- message capability&lt;/P&gt;&lt;P&gt;# provides UDP syslog reception&lt;BR /&gt;#module(load="imudp")&lt;BR /&gt;#input(type="imudp" port="514")&lt;/P&gt;&lt;P&gt;# provides TCP syslog reception&lt;BR /&gt;#module(load="imtcp")&lt;BR /&gt;#input(type="imtcp" port="514")&lt;/P&gt;&lt;P&gt;# provides kernel logging support and enable non-kernel klog messages&lt;BR /&gt;module(load="imklog" permitnonkernelfacility="on")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;### Entry by n37w0rk&lt;BR /&gt;module(load="imudp")&lt;BR /&gt;input(type="imudp" port="514")&lt;/P&gt;&lt;P&gt;module(load="imtcp")&lt;BR /&gt;input(type="imtcp" port="50514")&lt;/P&gt;&lt;P&gt;$template remote-incoming-logs,"/home/splunk/syslog/%HOSTNAME%/%PROGRAMNAME%.log"&lt;BR /&gt;*.* ?remote-incoming-logs&lt;BR /&gt;&amp;amp; ~&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;###########################&lt;BR /&gt;#### GLOBAL DIRECTIVES ####&lt;BR /&gt;###########################&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# Use traditional timestamp format.&lt;BR /&gt;# To enable high precision timestamps, comment out the following line.&lt;BR /&gt;#&lt;BR /&gt;$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat&lt;/P&gt;&lt;P&gt;# Filter duplicated messages&lt;BR /&gt;$RepeatedMsgReduction on&lt;/P&gt;&lt;P&gt;#&lt;BR /&gt;# Set the default permissions for all log files.&lt;BR /&gt;#&lt;BR /&gt;$FileOwner syslog&lt;BR /&gt;$FileGroup adm&lt;BR /&gt;$FileCreateMode 0640&lt;BR /&gt;$DirCreateMode 0755&lt;BR /&gt;$Umask 0022&lt;BR /&gt;$PrivDropToUser syslog&lt;BR /&gt;$PrivDropToGroup syslog&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;krgds Björn&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 12:20:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646100#M109916</guid>
      <dc:creator>n37w0rk</dc:creator>
      <dc:date>2023-06-07T12:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog files are not being deleted</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646102#M109917</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243165"&gt;@n37w0rk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I don't see the date and time in the field name, maybe the new file is rebuilded, try adding date and time to the file name.&lt;/P&gt;&lt;P&gt;ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 12:24:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-syslog-files-are-not-being-deleted/m-p/646102#M109917</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-06-07T12:24:39Z</dc:date>
    </item>
  </channel>
</rss>

