<?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: How to send syslog data to a specific index based on a string in the log? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143024#M29220</link>
    <description>&lt;P&gt;It is a UF...&lt;BR /&gt;
Moving those to the Indexer took care of it!  I had to change FORMAT = index:juniper to FORMAT = juniper but that got the data going to right location.  Thank you for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 12 Feb 2015 14:00:00 GMT</pubDate>
    <dc:creator>hlarimer</dc:creator>
    <dc:date>2015-02-12T14:00:00Z</dc:date>
    <item>
      <title>How to send syslog data to a specific index based on a string in the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143022#M29218</link>
      <description>&lt;P&gt;I have syslog data coming to a distributed environment.  I am trying to send the data to a specific index based on a string that is in the data.  The string is "NetScreen" and the index is juniper.  I have the following props.conf and transforms.conf deployed to the forwarder that is collecting these logs but the logs are still coming into index main&lt;/P&gt;

&lt;P&gt;Props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[JuniperFW]
Transforms-JuniperFW=JuniperFW
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[JuniperFW]
DEST_KEY = _MetaData:Index
REGEX = (NetScreen)
FORMAT = index::juniper
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Feb 2015 03:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143022#M29218</guid>
      <dc:creator>hlarimer</dc:creator>
      <dc:date>2015-02-12T03:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to a specific index based on a string in the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143023#M29219</link>
      <description>&lt;P&gt;"The forwarder that is collecting these logs" -&amp;gt; Is this a Universal Forwarder or a Heavy Forwarder? The UF only does input phase. In which case you would have to set this on your Indexer(s) or Heavy Forwarders. See &lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F"&gt;the Splunk Wiki&lt;/A&gt; for a handy reference for what applies where. &lt;/P&gt;

&lt;P&gt;Also you probably want to capitalize TRANSFORMS in the props.conf&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 04:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143023#M29219</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-02-12T04:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to a specific index based on a string in the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143024#M29220</link>
      <description>&lt;P&gt;It is a UF...&lt;BR /&gt;
Moving those to the Indexer took care of it!  I had to change FORMAT = index:juniper to FORMAT = juniper but that got the data going to right location.  Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 14:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143024#M29220</guid>
      <dc:creator>hlarimer</dc:creator>
      <dc:date>2015-02-12T14:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to a specific index based on a string in the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143025#M29221</link>
      <description>&lt;P&gt;Do you know if I can also change the sourcetype here.  I have tried using another stanza in transforms.conf and props.conf as shown below, but it is not changing the sourcetype, is there another method I should be using?&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[JuniperFW]&lt;BR /&gt;
TRANSFORMS-JuniperFW=JuniperFW&lt;/P&gt;

&lt;P&gt;[JuniperFW_ST]&lt;BR /&gt;
TRANSFORMS-JuniperRW_ST=JuniperFW_ST&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[JuniperFW]&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
REGEX = (NetScreen)&lt;BR /&gt;
FORMAT = juniper&lt;/P&gt;

&lt;P&gt;[JuniperFW_ST]&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
REGEX = (NetScreen)&lt;BR /&gt;
FORMAT = JuniperFW&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143025#M29221</guid>
      <dc:creator>hlarimer</dc:creator>
      <dc:date>2020-09-28T18:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to a specific index based on a string in the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143026#M29222</link>
      <description>&lt;P&gt;You should be able to change sourcetype at index time as well... (I'm not sure if the other sourcetype's props would apply or not when you change it, I haven't done much in this space). But I will note that according to the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/admin/Transformsconf"&gt;transforms.conf doc&lt;/A&gt; setting MetaData:Sourcetype requires the value to be prefixed &lt;CODE&gt;sourcetype::&lt;/CODE&gt; so your &lt;CODE&gt;FORMAT&lt;/CODE&gt; line should be &lt;CODE&gt;sourcetype::JuniperFW&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Alternatively, you can also rename sourcetypes at search time (slightly different configs).&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 21:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143026#M29222</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-02-13T21:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to a specific index based on a string in the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143027#M29223</link>
      <description>&lt;P&gt;Also related: &lt;A href="http://splunkreactions.tumblr.com/post/87038427475"&gt;http://splunkreactions.tumblr.com/post/87038427475&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 21:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143027#M29223</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-02-13T21:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to send syslog data to a specific index based on a string in the log?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143028#M29224</link>
      <description>&lt;P&gt;I ended up leaving them in index=main and then setting the sourcetype and index time.  My ultimate goal was to normalize the data to follow the CIM so I could create searches across multiple types of firewalls.  With the data separated into sourcetypes I am now able to create the search time field extractions I needed, although I struggled with this until I realized that the app that has the field extractions needed to be set to be shared globally in metadata/default.meta.  &lt;/P&gt;

&lt;P&gt;Everything is working now and now its time to start actually using the data!!&lt;/P&gt;</description>
      <pubDate>Sun, 15 Feb 2015 04:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-send-syslog-data-to-a-specific-index-based-on-a-string-in/m-p/143028#M29224</guid>
      <dc:creator>hlarimer</dc:creator>
      <dc:date>2015-02-15T04:17:45Z</dc:date>
    </item>
  </channel>
</rss>

