<?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 Route data coming from Syslog to new index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Re-Route-data-coming-from-Syslog-to-new-index/m-p/705314#M116668</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have below inputs stanza to monitor the syslog feed coming to index=base,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now we need to filter the out with a specific host names and re route them to new index&lt;BR /&gt;&lt;BR /&gt;monitor:///usr/local/apps/logs/*/base_log/*/*/*/*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = base:syslog&lt;BR /&gt;index = base&lt;BR /&gt;host_segment = 9&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;example I have hosts&amp;nbsp; (server&lt;STRONG&gt;xyz&lt;/STRONG&gt;.myserver.com, myhost&lt;STRONG&gt;abc&lt;/STRONG&gt;.myserver.com, myhost&lt;STRONG&gt;uvw&lt;/STRONG&gt;.myserver.com), now i want to match *xyz* and *abc* and re route to new index. since the old config has /*/ which feeds everything to old index i wanted to add balklist to the old stanza to avoid ingesting to both index.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;OLD Stanza :&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;monitor:///usr/local/apps/logs/*/base_log/*/*/*/*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = base:syslog&lt;BR /&gt;index = base&lt;BR /&gt;host_segment = 9&lt;BR /&gt;&lt;STRONG&gt;blacklist = (*xyz*|.*\/*abc*\/)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEW&amp;nbsp; Stanza :&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;monitor:///usr/local/apps/logs/*/base_log/*/*/*xyz*/*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = base:syslog&lt;BR /&gt;index = mynewindex&lt;BR /&gt;host_segment = 9&lt;BR /&gt;&lt;BR /&gt;monitor:///usr/local/apps/logs/*/base_log/*/*/*abc*/*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = base:syslog&lt;BR /&gt;index = mynewindex&lt;BR /&gt;host_segment = 9&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2024 16:57:46 GMT</pubDate>
    <dc:creator>Naa_Win</dc:creator>
    <dc:date>2024-11-26T16:57:46Z</dc:date>
    <item>
      <title>Re Route data coming from Syslog to new index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Re-Route-data-coming-from-Syslog-to-new-index/m-p/705314#M116668</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have below inputs stanza to monitor the syslog feed coming to index=base,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Now we need to filter the out with a specific host names and re route them to new index&lt;BR /&gt;&lt;BR /&gt;monitor:///usr/local/apps/logs/*/base_log/*/*/*/*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = base:syslog&lt;BR /&gt;index = base&lt;BR /&gt;host_segment = 9&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;example I have hosts&amp;nbsp; (server&lt;STRONG&gt;xyz&lt;/STRONG&gt;.myserver.com, myhost&lt;STRONG&gt;abc&lt;/STRONG&gt;.myserver.com, myhost&lt;STRONG&gt;uvw&lt;/STRONG&gt;.myserver.com), now i want to match *xyz* and *abc* and re route to new index. since the old config has /*/ which feeds everything to old index i wanted to add balklist to the old stanza to avoid ingesting to both index.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;OLD Stanza :&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;monitor:///usr/local/apps/logs/*/base_log/*/*/*/*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = base:syslog&lt;BR /&gt;index = base&lt;BR /&gt;host_segment = 9&lt;BR /&gt;&lt;STRONG&gt;blacklist = (*xyz*|.*\/*abc*\/)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NEW&amp;nbsp; Stanza :&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;monitor:///usr/local/apps/logs/*/base_log/*/*/*xyz*/*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = base:syslog&lt;BR /&gt;index = mynewindex&lt;BR /&gt;host_segment = 9&lt;BR /&gt;&lt;BR /&gt;monitor:///usr/local/apps/logs/*/base_log/*/*/*abc*/*.log]&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = base:syslog&lt;BR /&gt;index = mynewindex&lt;BR /&gt;host_segment = 9&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 16:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Re-Route-data-coming-from-Syslog-to-new-index/m-p/705314#M116668</guid>
      <dc:creator>Naa_Win</dc:creator>
      <dc:date>2024-11-26T16:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re Route data coming from Syslog to new index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Re-Route-data-coming-from-Syslog-to-new-index/m-p/705361#M116671</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258179"&gt;@Naa_Win&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;let me understand:&lt;/P&gt;&lt;P&gt;you want to send data from abc servers to new index and all the others to the old one, is it correct?&lt;/P&gt;&lt;P&gt;you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;monitor:///usr/local/apps/logs/*/base_log/*/*/*/*.log]
disabled = 0
sourcetype = base:syslog
index = base
host_segment = 9
blacklist1 = /usr/local/apps/logs/*/base_log/*/*/*xyz*/*.log
blacklist2 = /usr/local/apps/logs/*/base_log/*/*/*abc*/*.log

monitor:///usr/local/apps/logs/*/base_log/*/*/*xyz*/*.log]
disabled = 0
sourcetype = base:syslog
index = mynewindex
host_segment = 9

monitor:///usr/local/apps/logs/*/base_log/*/*/*abc*/*.log]
disabled = 0
sourcetype = base:syslog
index = mynewindex
host_segment = 9&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 07:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Re-Route-data-coming-from-Syslog-to-new-index/m-p/705361#M116671</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-11-27T07:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re Route data coming from Syslog to new index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Re-Route-data-coming-from-Syslog-to-new-index/m-p/707211#M116936</link>
      <description>&lt;P&gt;Hello. I tried this but i didn't worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 19:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Re-Route-data-coming-from-Syslog-to-new-index/m-p/707211#M116936</guid>
      <dc:creator>Naa_Win</dc:creator>
      <dc:date>2024-12-18T19:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re Route data coming from Syslog to new index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Re-Route-data-coming-from-Syslog-to-new-index/m-p/707216#M116937</link>
      <description>Hi&lt;BR /&gt;I afraid that you must do this in HF or IDX with props and transforms? The reason for that is those file/directory names. I think that splunk internally expand those in one equal name and for that reason you have only one monitoring stanza not three?&lt;BR /&gt;Maybe you could try to put those in different order, put that wildcard only into latest. Use btool to look how splunk see those and in which order it put those. Another tool to check how those are read is use “splunk list inputstatus” that shows which files it has read and which stanza those belongs.&lt;BR /&gt;r. Ismo</description>
      <pubDate>Wed, 18 Dec 2024 20:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Re-Route-data-coming-from-Syslog-to-new-index/m-p/707216#M116937</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-12-18T20:19:57Z</dc:date>
    </item>
  </channel>
</rss>

