<?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 create sourcetype based on raw field in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-sourcetype-based-on-raw-field-in-splunk/m-p/26753#M177685</link>
    <description>&lt;P&gt;This is probably where you should look;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The regex should probably be something like below, but you'll have to adjust it according to your data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = \"ID\":32, 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2013 19:39:48 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-05-07T19:39:48Z</dc:date>
    <item>
      <title>how to create sourcetype based on raw field in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-sourcetype-based-on-raw-field-in-splunk/m-p/26752#M177684</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
In my case, Splunk is getting data in by tcp port. I configure the TCP port with sourcetype="myagent".&lt;BR /&gt;
the json format events I am getting looks like:&lt;/P&gt;

&lt;P&gt;{"ID":32,"BUILD":"AA123","PNAME":"Cherry","DATE":"Wed Apr  3 01:00:00 2013","UID":"xyz123"}&lt;BR /&gt;
{"ID":3,"MID":"222-444",,"TS":"Wed May  8 03:15:39 2013","CT":1,"MS":0,"AU":23}&lt;/P&gt;

&lt;P&gt;My issue is for ID=3 Splunk getting event data in every 15 sec and for id=32 event data coming once in day. so Eventcount for ID=3 is very huge that ID=32. &lt;BR /&gt;
When I search ID=32 data it takes so long to display events. I dont know how to search them faster. I am filtering the data on ID=32 as&lt;BR /&gt;
sourcetype="myagent"|spath |search EID=32&lt;BR /&gt;
in my search but not much helpful.&lt;BR /&gt;
I want to ask can I give some different sourcetype name to ID=32 events so that I can search then faster and Splunk dont even look with data ID=3. OR can I attach some unique field which can differentiate between them and search ID=32 data faster? I never used pros.conf or inputs.conf So I am very nerveous to use it.please guide me in right direction to achieve faster retrieval of Events.&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 19:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-sourcetype-based-on-raw-field-in-splunk/m-p/26752#M177684</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2013-05-07T19:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to create sourcetype based on raw field in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-create-sourcetype-based-on-raw-field-in-splunk/m-p/26753#M177685</link>
      <description>&lt;P&gt;This is probably where you should look;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The regex should probably be something like below, but you'll have to adjust it according to your data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = \"ID\":32, 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 19:39:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-create-sourcetype-based-on-raw-field-in-splunk/m-p/26753#M177685</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-07T19:39:48Z</dc:date>
    </item>
  </channel>
</rss>

