<?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: Don't forward old IIS Logs to Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Don-t-forward-old-IIS-Logs-to-Splunk/m-p/538784#M90281</link>
    <description>&lt;P&gt;This may help..&lt;/P&gt;&lt;P&gt;1. If the file is older than 2 days we can use&amp;nbsp;&amp;nbsp;ignoreOlderThan&amp;nbsp;=&amp;nbsp;2d in inputs.conf in forwarder.&lt;/P&gt;&lt;P&gt;2. Please check the below configuration is in props.conf in HF/Indexer.&lt;/P&gt;&lt;P&gt;[iis]&lt;/P&gt;&lt;P&gt;MAX_DAYS_AGO=2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 15:12:08 GMT</pubDate>
    <dc:creator>saravanan90</dc:creator>
    <dc:date>2021-02-05T15:12:08Z</dc:date>
    <item>
      <title>Don't forward old IIS Logs to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Don-t-forward-old-IIS-Logs-to-Splunk/m-p/538779#M90279</link>
      <description>&lt;P&gt;Hello All!&lt;/P&gt;&lt;P&gt;I am configuring Splunk in different servers to send the IIS Logs. I am doing it by adding the IIS Log Folder as a Data Input -&amp;gt; Files &amp;amp; Directories.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in the IIS Log File there is old Logs, and I only want that send to splunk Logs from no more that two days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already configured in the .props.config the&amp;nbsp;MAX_DAYS_AGO=2, but it doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried in these ways:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the file in ...\etc\system\local\props.config&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[iis]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MAX_DAYS_AGO=2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;---------------- Didn't work&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[default]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MAX_DAYS_AGO=2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;------------------Didn't work&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing the Default in the ..\etc\system\default\props.config&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[default]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;MAX_DAYS_AGO=2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;------------------Didn't work&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Restarting the Splunk service every time when I made the change&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could somebody say me what I am missing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 14:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Don-t-forward-old-IIS-Logs-to-Splunk/m-p/538779#M90279</guid>
      <dc:creator>daymar_23</dc:creator>
      <dc:date>2021-02-05T14:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Don't forward old IIS Logs to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Don-t-forward-old-IIS-Logs-to-Splunk/m-p/538784#M90281</link>
      <description>&lt;P&gt;This may help..&lt;/P&gt;&lt;P&gt;1. If the file is older than 2 days we can use&amp;nbsp;&amp;nbsp;ignoreOlderThan&amp;nbsp;=&amp;nbsp;2d in inputs.conf in forwarder.&lt;/P&gt;&lt;P&gt;2. Please check the below configuration is in props.conf in HF/Indexer.&lt;/P&gt;&lt;P&gt;[iis]&lt;/P&gt;&lt;P&gt;MAX_DAYS_AGO=2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 15:12:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Don-t-forward-old-IIS-Logs-to-Splunk/m-p/538784#M90281</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2021-02-05T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Don't forward old IIS Logs to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Don-t-forward-old-IIS-Logs-to-Splunk/m-p/538788#M90282</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/211208"&gt;@saravanan90&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, but I am new using splunk. So what do you mean by&amp;nbsp;&lt;SPAN&gt;HF/Indexer?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My local props.config looks like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;[iis]&lt;BR /&gt;MAX_DAYS_AGO=2&lt;BR /&gt;TRANSFORMS-null = setnull,setNotFound&lt;/P&gt;&lt;P&gt;And under what label do I have to put the&amp;nbsp;&lt;SPAN&gt;ignoreOlderThan&amp;nbsp;=&amp;nbsp;2d in my local inputs.conf?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your reply.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 15:35:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Don-t-forward-old-IIS-Logs-to-Splunk/m-p/538788#M90282</guid>
      <dc:creator>daymar_23</dc:creator>
      <dc:date>2021-02-05T15:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Don't forward old IIS Logs to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Don-t-forward-old-IIS-Logs-to-Splunk/m-p/538791#M90284</link>
      <description>&lt;P&gt;In inputs.conf we configure the file which needs to be monitored as below. We can add the "ignoreOlderThan&amp;nbsp;=&amp;nbsp;2d" as below in inputs.conf so that it will exclude the files which are older than 2 days.&lt;/P&gt;&lt;P&gt;[monitor://path_to_logfile.log]&lt;BR /&gt;disabled = false&lt;BR /&gt;index = iis&lt;BR /&gt;sourcetype = iis&lt;BR /&gt;crcSalt = &amp;lt;SOURCE&amp;gt;&lt;BR /&gt;&lt;STRONG&gt;ignoreOlderThan&amp;nbsp;=&amp;nbsp;2d&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we need to go through each individual events and ignore the data then we can add them where it is being parsed. If we are using intermediate Heavy forwarder for parsing, then configure here. If the logs being collected are sent directly to indexers then we can configure the below in indexers.&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[iis]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MAX_DAYS_AGO=2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 15:48:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Don-t-forward-old-IIS-Logs-to-Splunk/m-p/538791#M90284</guid>
      <dc:creator>saravanan90</dc:creator>
      <dc:date>2021-02-05T15:48:46Z</dc:date>
    </item>
  </channel>
</rss>

