<?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: Multiple Json types in one file. How do i get data into Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302541#M57153</link>
    <description>&lt;P&gt;If the source can be edited to write to different files per sourcetype that is most ideal.&lt;/P&gt;

&lt;P&gt;Another option that doesn't involve the universal forwarder is ingest the file using python and send to Splunk HTTP Event collector. A bit more complex but more flexible than doing regex routing at indexers.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 16:05:57 GMT</pubDate>
    <dc:creator>starcher</dc:creator>
    <dc:date>2018-04-04T16:05:57Z</dc:date>
    <item>
      <title>Multiple Json types in one file. How do i get data into Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302537#M57149</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have one file with multiple JSON types in it.&lt;BR /&gt;
What is the best way to get this data into Splunk.&lt;BR /&gt;
I dont think i can use a universal forwarder as i cant specify the sourcetype as i is multiple.&lt;/P&gt;

&lt;P&gt;Someone said use a heavy forward and do the work of splitting the data into different source types before i send it. &lt;/P&gt;

&lt;P&gt;Is this the correct approach?&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Robert Lynch&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 05:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302537#M57149</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2018-04-04T05:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Json types in one file. How do i get data into Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302538#M57150</link>
      <description>&lt;P&gt;&lt;CODE&gt;spath&lt;/CODE&gt; command, it will do that for you, you may refer to the below link for using spath&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/SearchReference/spath"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/SearchReference/spath&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 05:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302538#M57150</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-04T05:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Json types in one file. How do i get data into Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302539#M57151</link>
      <description>&lt;P&gt;This may help you:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/567087/how-to-split-data-into-separate-sourcetypes-with-t.html"&gt;https://answers.splunk.com/answers/567087/how-to-split-data-into-separate-sourcetypes-with-t.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 06:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302539#M57151</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-04T06:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Json types in one file. How do i get data into Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302540#M57152</link>
      <description>&lt;P&gt;@robertlynch2020, your indexer can also do this job, but better approach like you have said is to use heavy forward to set different sourcetype based on different JSON from the same source through props.conf and transforms.conf for sourcetype override.&lt;/P&gt;

&lt;P&gt;Refer to Splunk Documentation : &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides#Example:_Assign_a_source_type_to_events_from_a_single_input_but_different_hosts"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides#Example:_Assign_a_source_type_to_events_from_a_single_input_but_different_hosts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And Splunk Blog: &lt;A href="https://www.splunk.com/blog/2010/02/11/sourcetypes-gone-wild.html"&gt;https://www.splunk.com/blog/2010/02/11/sourcetypes-gone-wild.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 13:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302540#M57152</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-04T13:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Json types in one file. How do i get data into Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302541#M57153</link>
      <description>&lt;P&gt;If the source can be edited to write to different files per sourcetype that is most ideal.&lt;/P&gt;

&lt;P&gt;Another option that doesn't involve the universal forwarder is ingest the file using python and send to Splunk HTTP Event collector. A bit more complex but more flexible than doing regex routing at indexers.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 16:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302541#M57153</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2018-04-04T16:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Json types in one file. How do i get data into Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302542#M57154</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Thanks, this is the answer i went with &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 09:45:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302542#M57154</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2018-04-05T09:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Json types in one file. How do i get data into Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302543#M57155</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;This is the answer that i went with&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/567087/how-to-split-data-into-separate-sourcetypes-with-t.html"&gt;https://answers.splunk.com/answers/567087/how-to-split-data-into-separate-sourcetypes-with-t.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Cheers to all &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 09:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-Json-types-in-one-file-How-do-i-get-data-into-Splunk/m-p/302543#M57155</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2018-04-05T09:45:49Z</dc:date>
    </item>
  </channel>
</rss>

