<?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 Configuration to forward log files to separate indexes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146149#M29772</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;I have an application that sends two different .log files to the C:\\Program Files (x86)\\Application\_Data directory. The log files are &lt;/P&gt;

&lt;P&gt;AAAAAA_MM_DD_YYYY_HH_mm_ss.log and BBBBB_MM_DD_YYYY_HH_mm_ss.log.&lt;/P&gt;

&lt;P&gt;I need each log file to go to a separate index in Splunk and have the following inputs.conf configuration:&lt;/P&gt;

&lt;P&gt;NOTE: Had to change "Program Files (x86)" to "PROGRA~2"....that took forever to figure out! Geez.&lt;/P&gt;

&lt;P&gt;[monitor:///C:\\PROGRA~2\\Application\_Data\\AAAAAA*.log]&lt;BR /&gt;
index=AAAAA_gui&lt;BR /&gt;
disabled=false&lt;BR /&gt;
sourcetype=AAAAA_gui.log&lt;/P&gt;

&lt;P&gt;[monitor:///C:\\PROGRA~2\\Application\_Data\\BBBBB*.log]&lt;BR /&gt;
index=BBBBB_app&lt;BR /&gt;
disabled=false&lt;BR /&gt;
sourcetype=BBBBB_app.log&lt;/P&gt;

&lt;P&gt;If I remove one stanza, the remaining stanza forwards the appropriate data. If they are both in the inputs.conf, none are sent to splunk.&lt;/P&gt;

&lt;P&gt;I've tried blacklist and whitelist on each. &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:06:16 GMT</pubDate>
    <dc:creator>nissanse98</dc:creator>
    <dc:date>2020-09-28T17:06:16Z</dc:date>
    <item>
      <title>Configuration to forward log files to separate indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146149#M29772</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;I have an application that sends two different .log files to the C:\\Program Files (x86)\\Application\_Data directory. The log files are &lt;/P&gt;

&lt;P&gt;AAAAAA_MM_DD_YYYY_HH_mm_ss.log and BBBBB_MM_DD_YYYY_HH_mm_ss.log.&lt;/P&gt;

&lt;P&gt;I need each log file to go to a separate index in Splunk and have the following inputs.conf configuration:&lt;/P&gt;

&lt;P&gt;NOTE: Had to change "Program Files (x86)" to "PROGRA~2"....that took forever to figure out! Geez.&lt;/P&gt;

&lt;P&gt;[monitor:///C:\\PROGRA~2\\Application\_Data\\AAAAAA*.log]&lt;BR /&gt;
index=AAAAA_gui&lt;BR /&gt;
disabled=false&lt;BR /&gt;
sourcetype=AAAAA_gui.log&lt;/P&gt;

&lt;P&gt;[monitor:///C:\\PROGRA~2\\Application\_Data\\BBBBB*.log]&lt;BR /&gt;
index=BBBBB_app&lt;BR /&gt;
disabled=false&lt;BR /&gt;
sourcetype=BBBBB_app.log&lt;/P&gt;

&lt;P&gt;If I remove one stanza, the remaining stanza forwards the appropriate data. If they are both in the inputs.conf, none are sent to splunk.&lt;/P&gt;

&lt;P&gt;I've tried blacklist and whitelist on each. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146149#M29772</guid>
      <dc:creator>nissanse98</dc:creator>
      <dc:date>2020-09-28T17:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration to forward log files to separate indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146150#M29773</link>
      <description>&lt;P&gt;I think that because these have wildcards, the monitor stanzas are "overlapping" in some way. So I would recommend this:&lt;/P&gt;

&lt;H2&gt;On the forwarder(s):&lt;/H2&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///C:\PROGRA~2\Application\_Data\]
whitelist=AAAAAA.*\.log$ | BBBBB.*\.log$
disabled=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::C:\PROGRA~2\Application\_Data\AAAAA*.log]
sourcetype=AAAAA_gui.log

[source::C:\PROGRA~2\Application\_Data\BBBBB*.log]
sourcetype=BBBBB_app.log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;H2&gt;On the Splunk indexer(s):&lt;/H2&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[AAAAA_gui.log]
TRANSFORMS-AAAAA=send_to_index_AAAAA_gui

[BBBBB_app.log]
TRANSFORMS-BBBBB=send_to_index_BBBBB_app
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[send_to_index_AAAAA_gui]
REGEX=.
DEST_KEY=_MetaData:Index
FORMAT=AAAAA_gui

[send_to_index_BBBBB_app]
REGEX=.
DEST_KEY=_MetaData:Index
FORMAT=BBBBB_app
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Jul 2014 23:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146150#M29773</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-07-16T23:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration to forward log files to separate indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146151#M29774</link>
      <description>&lt;P&gt;No Success yet:&lt;BR /&gt;
inputs.conf: C:\\Program Files\\SplunkUniversalForwarder\\etc\\system\\local&lt;/P&gt;

&lt;P&gt;[default]&lt;BR /&gt;
host = xxxxxx&lt;BR /&gt;
[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
[monitor:///C:\\PROGRA~2\\Application\_Data\]&lt;BR /&gt;
whitelist=AAAAAA.&lt;EM&gt;.log$ | BBBBB.&lt;/EM&gt;.log$&lt;BR /&gt;
disabled=false&lt;/P&gt;

&lt;P&gt;props.conf was not in the "C:\\Program Files\\SplunkUniversalForwarder\\etc\\system\\local" so I created it exactly as below:&lt;BR /&gt;
[source::C:\\PROGRA~2\\Application\_Data\\AAAAA*.log]&lt;BR /&gt;
sourcetype=AAAAA_gui.log&lt;BR /&gt;
[source::C:\\PROGRA~2\\Application\_Data\\BBBBB*.log]&lt;BR /&gt;
sourcetype=BBBBB_app.log&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146151#M29774</guid>
      <dc:creator>nissanse98</dc:creator>
      <dc:date>2020-09-28T17:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration to forward log files to separate indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146152#M29775</link>
      <description>&lt;P&gt;I restarted the forwarder service.&lt;BR /&gt;
On the splunk server/indexer:&lt;BR /&gt;
props.conf was not located at:C:\\Program Files\\Splunk\\etc\\system\\local, so I created it as follows:&lt;/P&gt;

&lt;P&gt;[AAAAA_gui.log]&lt;BR /&gt;
TRANSFORMS-AAAAA=send_to_index_AAAAA_gui&lt;BR /&gt;
[BBBBB_app.log]&lt;BR /&gt;
TRANSFORMS-BBBBB=send_to_index_BBBBB_app&lt;/P&gt;

&lt;P&gt;Additionally, transforms.conf was no in the C:\\Program Files\\Splunk\\etc\\system\\local, so I created it as follows:&lt;/P&gt;

&lt;P&gt;[send_to_index_AAAAA_gui]&lt;BR /&gt;
REGEX=.&lt;BR /&gt;
DEST_KEY=_MetaData:Index&lt;BR /&gt;
FORMAT=AAAAA_gui&lt;BR /&gt;
[send_to_index_BBBBB_app]&lt;BR /&gt;
REGEX=.&lt;BR /&gt;
DEST_KEY=_MetaData:Index&lt;BR /&gt;
FORMAT=BBBBB_app&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146152#M29775</guid>
      <dc:creator>nissanse98</dc:creator>
      <dc:date>2020-09-28T17:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration to forward log files to separate indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146153#M29776</link>
      <description>&lt;P&gt;I appreciate the help; sorry for the several comments....I do not understand why there would be a character limit for replies in the forum............&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 02:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146153#M29776</guid>
      <dc:creator>nissanse98</dc:creator>
      <dc:date>2014-07-17T02:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration to forward log files to separate indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146154#M29777</link>
      <description>&lt;P&gt;Are the files appearing in &lt;EM&gt;any&lt;/EM&gt; index?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2014 17:45:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configuration-to-forward-log-files-to-separate-indexes/m-p/146154#M29777</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-07-17T17:45:05Z</dc:date>
    </item>
  </channel>
</rss>

