<?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: direct  files in /var/log/atpco to different indexes and sourcetypes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105801#M27474</link>
    <description>&lt;P&gt;Hi steveirogers&lt;/P&gt;

&lt;P&gt;with the monitor stanza you have to do this in inputs.conf.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;props.conf&lt;/EM&gt; and &lt;EM&gt;transforms.conf&lt;/EM&gt; can also be used for &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.4/Deploy/Routeandfilterdatad"&gt;route and filter&lt;/A&gt; into different indexes, but then this would be for any kind of input.&lt;/P&gt;

&lt;P&gt;cheers&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2011 13:12:31 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2011-11-08T13:12:31Z</dc:date>
    <item>
      <title>direct  files in /var/log/atpco to different indexes and sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105800#M27473</link>
      <description>&lt;P&gt;I am running Splunk 4.2.3.&lt;BR /&gt;&lt;BR /&gt;
I have a directory called "/var/log/atpco" which contains numerous log files.&lt;/P&gt;

&lt;P&gt;I have played with all types of coding for whitelist and blacklist configurations but nothing seems to work. &lt;BR /&gt;
My goals are as follows:&lt;BR /&gt;
I would like to direct these specific files to a separate index and sourcetype as index=rules, soucetype=RulesOffline:&lt;BR /&gt;
fmgpjob01_RulesApplyBC01.log&lt;BR /&gt;
fmgpjob01_RulesCopyBC01.log&lt;BR /&gt;
fmgpjob01_RulesQueryBC01.log&lt;BR /&gt;
fmgpjob01_RulesQueryBC02.log&lt;BR /&gt;
fmgpjob01_RulesQuickJobsBC01.log&lt;BR /&gt;
fmgpjob01_RulesQuickJobsBC02.log&lt;BR /&gt;
fmgpjob01_RulesRBDTableSaveBC01.log&lt;/P&gt;

&lt;P&gt;I would like to direct these specific files to a separate index and sourcetype as index=fares, soucetype=FaresOffline:&lt;BR /&gt;
fmgpjob01_ApplyBC01.log&lt;BR /&gt;
fmgpjob01_CriteriaSetBC01.log&lt;BR /&gt;
fmgpjob01_InquiryBC01.log&lt;BR /&gt;
fmgpjob01_LoadBC01.log&lt;BR /&gt;
fmgpjob01_QuickJobsBC01.log&lt;BR /&gt;
fmgpjob01_QuickJobsBC02.log&lt;BR /&gt;
fmgpjob01_StrikeoverBC01.log&lt;BR /&gt;
fmgpjob01_ValidationJobsBC01.log&lt;BR /&gt;
fmgpjob01_ValidationJobsBC02.log&lt;BR /&gt;
fmgpjob01_ValidationJobsBC03.log&lt;/P&gt;

&lt;P&gt;I want to ignore any other files in the /var/log/atpco directory.&lt;/P&gt;

&lt;P&gt;Could anyone please provide some guidance on how to accomplish the above?  Currently I get nothing with the existing configuration.   Do I need to do this in props.conf?&lt;/P&gt;

&lt;P&gt;Here is what I have now:&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/atpco]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
index = rules&lt;BR /&gt;
sourcetype = RulesOffline&lt;BR /&gt;
whitelist = fmgpjob01_Rules[^/]*.log$&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/atpco]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
index = fares&lt;BR /&gt;
sourcetype = FaresOffline&lt;BR /&gt;
whitelist = fmgpjob01_Apply*.log$&lt;BR /&gt;
whitelist = fmgpjob01_CriteriaSet*.log$&lt;BR /&gt;
whitelist = fmgpjob01_DDSAllAdds*.log$&lt;BR /&gt;
whitelist = fmgpjob01_Inquiry*.log$&lt;BR /&gt;
whitelist = fmgpjob01_QuickJobs*.log$&lt;BR /&gt;
whitelist = fmgpjob01_Strikeover*.log$&lt;BR /&gt;
whitelist = fmgpjob01_ValidationJobs*.log$&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105800#M27473</guid>
      <dc:creator>steveirogers</dc:creator>
      <dc:date>2020-09-28T10:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: direct  files in /var/log/atpco to different indexes and sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105801#M27474</link>
      <description>&lt;P&gt;Hi steveirogers&lt;/P&gt;

&lt;P&gt;with the monitor stanza you have to do this in inputs.conf.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;props.conf&lt;/EM&gt; and &lt;EM&gt;transforms.conf&lt;/EM&gt; can also be used for &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.4/Deploy/Routeandfilterdatad"&gt;route and filter&lt;/A&gt; into different indexes, but then this would be for any kind of input.&lt;/P&gt;

&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 13:12:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105801#M27474</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2011-11-08T13:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: direct  files in /var/log/atpco to different indexes and sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105802#M27475</link>
      <description>&lt;P&gt;Thanks MuS, but I do not quite understand.  Should my monitor stanza work as coded?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105802#M27475</guid>
      <dc:creator>steveirogers</dc:creator>
      <dc:date>2011-11-08T15:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: direct  files in /var/log/atpco to different indexes and sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105803#M27476</link>
      <description>&lt;P&gt;basically: yes. you can run 'splunk cmd btool --debug inputs list monitor' to see what your monitor stanzas will look at the end. I think the problem is that you have two monitor stanzas for the same directory.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105803#M27476</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2011-11-08T15:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: direct  files in /var/log/atpco to different indexes and sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105804#M27477</link>
      <description>&lt;P&gt;Thanks.  I will do some more research on overlapping monitor stanza's then.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 18:44:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/direct-files-in-var-log-atpco-to-different-indexes-and/m-p/105804#M27477</guid>
      <dc:creator>steveirogers</dc:creator>
      <dc:date>2011-11-09T18:44:53Z</dc:date>
    </item>
  </channel>
</rss>

