<?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: Splunk Forwarder Configuration? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Configuration/m-p/351532#M64462</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Which one of below will work&lt;/P&gt;

&lt;P&gt;whitelist=.log$ or whitelist=*.log&lt;/P&gt;

&lt;P&gt;one more thing&lt;/P&gt;

&lt;P&gt;I have some log file with timestamp as well. &lt;/P&gt;

&lt;P&gt;like pqr.log.10/12/2017&lt;/P&gt;

&lt;P&gt;I want to includes these files as well.&lt;/P&gt;

&lt;P&gt;What I need is&lt;/P&gt;

&lt;P&gt;abc.log&lt;BR /&gt;
xyz.log&lt;BR /&gt;
pqr.log.10/11/2017&lt;/P&gt;

&lt;P&gt;what i don't want&lt;BR /&gt;
abc.log.1&lt;BR /&gt;
xyz.log.1&lt;/P&gt;

&lt;P&gt;Please can you provide configuration for this scenario.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Nikks&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2017 08:44:39 GMT</pubDate>
    <dc:creator>nilaksh92</dc:creator>
    <dc:date>2017-08-04T08:44:39Z</dc:date>
    <item>
      <title>Splunk Forwarder Configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Configuration/m-p/351530#M64460</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;Need some help on configuration of Splunk forwarder.&lt;/P&gt;

&lt;P&gt;I have multiple log files under a directory. So, I have pointed the directory to fetch all logs from all file.&lt;/P&gt;

&lt;P&gt;Is that correct way?&lt;/P&gt;

&lt;P&gt;Now I have one requirement,&lt;/P&gt;

&lt;P&gt;Under that directory "Nikks", I have log file named like&lt;/P&gt;

&lt;P&gt;Log Files:-&lt;/P&gt;

&lt;P&gt;abc.log&lt;BR /&gt;
abc.log.1&lt;BR /&gt;
abc.log.2&lt;BR /&gt;
xyz.log&lt;BR /&gt;
xyz.log.1&lt;BR /&gt;
xyz.log.2&lt;/P&gt;

&lt;P&gt;Like this I have lot of sets of log files under same directory.&lt;/P&gt;

&lt;P&gt;I just want to sent logs from abc.log and xyz.log to splunk.&lt;/P&gt;

&lt;P&gt;I don't need events from abc.log.1, abc.log.2 etc.&lt;/P&gt;

&lt;P&gt;Please let me know how to configure the forwarder for this scenario.&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;BR /&gt;
Nikks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 08:02:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Configuration/m-p/351530#M64460</guid>
      <dc:creator>nilaksh92</dc:creator>
      <dc:date>2017-08-04T08:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder Configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Configuration/m-p/351531#M64461</link>
      <description>&lt;P&gt;The &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf"&gt;inputs documentation&lt;/A&gt; has many configuration  options you could use, in your case you could:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Create a monitor:/// stanza for each
file you want &lt;/LI&gt;
&lt;LI&gt;Use the whitelist stanza with your existing directory reference:
whitelist=\.log$&lt;/LI&gt;
&lt;LI&gt;Use the blacklist stanza and exclude files you do not want.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I would use the whitelist option in your scenario if you are happy with either not hardcoding the sourcetype in the inputs.conf &lt;EM&gt;or&lt;/EM&gt; having a single sourcetype for all the files.&lt;/P&gt;

&lt;P&gt;Any of the options listed could work.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 08:14:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Configuration/m-p/351531#M64461</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-08-04T08:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder Configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Configuration/m-p/351532#M64462</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Which one of below will work&lt;/P&gt;

&lt;P&gt;whitelist=.log$ or whitelist=*.log&lt;/P&gt;

&lt;P&gt;one more thing&lt;/P&gt;

&lt;P&gt;I have some log file with timestamp as well. &lt;/P&gt;

&lt;P&gt;like pqr.log.10/12/2017&lt;/P&gt;

&lt;P&gt;I want to includes these files as well.&lt;/P&gt;

&lt;P&gt;What I need is&lt;/P&gt;

&lt;P&gt;abc.log&lt;BR /&gt;
xyz.log&lt;BR /&gt;
pqr.log.10/11/2017&lt;/P&gt;

&lt;P&gt;what i don't want&lt;BR /&gt;
abc.log.1&lt;BR /&gt;
xyz.log.1&lt;/P&gt;

&lt;P&gt;Please can you provide configuration for this scenario.&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Nikks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 08:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Configuration/m-p/351532#M64462</guid>
      <dc:creator>nilaksh92</dc:creator>
      <dc:date>2017-08-04T08:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Forwarder Configuration?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Configuration/m-p/351533#M64463</link>
      <description>&lt;P&gt;I would suggest a website like &lt;A href="http://regex101.com"&gt;http://regex101.com&lt;/A&gt; could be used for testing any regular expression.&lt;/P&gt;

&lt;P&gt;So you could do:&lt;BR /&gt;
whitelist = \.log(\.\d+/\d+/\d+)?$&lt;/P&gt;

&lt;P&gt;Or you could make a blacklist for \.[123456789]$&lt;/P&gt;

&lt;P&gt;The $ matches end of line however *.log would likely work&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 08:49:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Forwarder-Configuration/m-p/351533#M64463</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-08-04T08:49:38Z</dc:date>
    </item>
  </channel>
</rss>

