<?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 route data to custom index using source in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258871#M49690</link>
    <description>&lt;P&gt;i have three different source&lt;BR /&gt;
1. /var/log/auth.log&lt;BR /&gt;
2. /var/log/syslog&lt;/P&gt;

&lt;P&gt;i want data to route my custom index&lt;/P&gt;

&lt;P&gt;source 1 and source 2 to INDEXA&lt;/P&gt;

&lt;P&gt;can any one help me??&lt;/P&gt;

&lt;P&gt;i tried this, but it didn't worked&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[/var/log/auth.log]&lt;BR /&gt;
TRANSFORMS-routing_for_var_log_auth_source = route_to_indexa&lt;/P&gt;

&lt;P&gt;[/var/log/syslog]&lt;BR /&gt;
TRANSFORMS-routing_for_var_log_syslog_source =route_to_indexb&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[route_to_indexa]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = indexa&lt;/P&gt;

&lt;P&gt;[route_to_indexb]&lt;BR /&gt;
 REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = indexa&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:27:38 GMT</pubDate>
    <dc:creator>saifuddin9122</dc:creator>
    <dc:date>2020-09-29T11:27:38Z</dc:date>
    <item>
      <title>route data to custom index using source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258871#M49690</link>
      <description>&lt;P&gt;i have three different source&lt;BR /&gt;
1. /var/log/auth.log&lt;BR /&gt;
2. /var/log/syslog&lt;/P&gt;

&lt;P&gt;i want data to route my custom index&lt;/P&gt;

&lt;P&gt;source 1 and source 2 to INDEXA&lt;/P&gt;

&lt;P&gt;can any one help me??&lt;/P&gt;

&lt;P&gt;i tried this, but it didn't worked&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[/var/log/auth.log]&lt;BR /&gt;
TRANSFORMS-routing_for_var_log_auth_source = route_to_indexa&lt;/P&gt;

&lt;P&gt;[/var/log/syslog]&lt;BR /&gt;
TRANSFORMS-routing_for_var_log_syslog_source =route_to_indexb&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[route_to_indexa]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = indexa&lt;/P&gt;

&lt;P&gt;[route_to_indexb]&lt;BR /&gt;
 REGEX = .&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = indexa&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258871#M49690</guid>
      <dc:creator>saifuddin9122</dc:creator>
      <dc:date>2020-09-29T11:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: route data to custom index using source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258872#M49691</link>
      <description>&lt;P&gt;Destination indexes are typically specified in the inputs.conf&lt;BR /&gt;
Can you post your inputs.conf entries for these sources?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 16:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258872#M49691</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2016-10-18T16:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: route data to custom index using source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258873#M49692</link>
      <description>&lt;P&gt;As these sources are from network components, we don't have any control on inputs,&lt;/P&gt;

&lt;P&gt;logging is enabled using the GUI of that particular Network component where we need to provide splunk Indexer Ip and port.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 16:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258873#M49692</guid>
      <dc:creator>saifuddin9122</dc:creator>
      <dc:date>2016-10-18T16:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: route data to custom index using source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258874#M49693</link>
      <description>&lt;P&gt;Regardless of whether you use the GUI or not, there is an inputs.conf file for these inputs (the GUI creates it).&lt;BR /&gt;
If they are coming from different IPs or the same IP and different ports, then the index= parameter can be added to those inputs.conf stanzas.&lt;BR /&gt;
If all sources are coming in on the same IP and port, then doing this in props/transforms is the way to go.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 16:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258874#M49693</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2016-10-18T16:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: route data to custom index using source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258875#M49694</link>
      <description>&lt;P&gt;its is not splunk GUI, &lt;BR /&gt;
it is GUI of that network component. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 18:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258875#M49694</guid>
      <dc:creator>saifuddin9122</dc:creator>
      <dc:date>2016-10-18T18:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: route data to custom index using source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258876#M49695</link>
      <description>&lt;P&gt;I did not know that Splunk could index data without an inputs.conf stanza for that data.  I guess I'll have to study more.  What is the network component manufacturer/model?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 18:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258876#M49695</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2016-10-18T18:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: route data to custom index using source</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258877#M49696</link>
      <description>&lt;P&gt;The props.conf stanza name for source (and host) should start with source:: (or host:: for host), like this.&lt;BR /&gt;
props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/var/log/auth.log]
TRANSFORMS-routing_for_var_log_auth_source = route_to_indexa

[source::/var/log/syslog]
TRANSFORMS-routing_for_var_log_syslog_source =route_to_indexb
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Oct 2016 18:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/route-data-to-custom-index-using-source/m-p/258877#M49696</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-18T18:31:45Z</dc:date>
    </item>
  </channel>
</rss>

