<?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: Json file loading and indexing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Json-file-loading-and-indexing/m-p/359104#M65533</link>
    <description>&lt;P&gt;if its pure-json , you can do indexed extractions&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# inputs.conf
[monitor:///tmp/json_pure/*]
sourcetype=myjson
index=someIndex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#props.conf
[myjson]
INDEXED_EXTRACTIONS = JSON
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In reality, the props.conf may be bit more complex. This is because your data payload will contain time and you need to specify which field it has to extract the time etc.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2017 16:29:14 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2017-11-10T16:29:14Z</dc:date>
    <item>
      <title>Json file loading and indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-file-loading-and-indexing/m-p/359103#M65532</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;
I am trying to load and index a json file with the FREE version of SPLUNK.&lt;/P&gt;

&lt;P&gt;After loaded the file I cannot see the events and the search does not retrieve any data. &lt;/P&gt;

&lt;P&gt;The test used file is:&lt;BR /&gt;
{&lt;BR /&gt;
  "custom_classes": 0,&lt;BR /&gt;
  "images": [&lt;BR /&gt;
    {&lt;BR /&gt;
      "classifiers": [&lt;BR /&gt;
        {&lt;BR /&gt;
          "classes": [&lt;BR /&gt;
            {&lt;BR /&gt;
              "class": "banana",&lt;BR /&gt;
              "score": 0.562,&lt;BR /&gt;
              "type_hierarchy": "/fruit/banana"&lt;BR /&gt;
            },&lt;BR /&gt;
            {&lt;BR /&gt;
              "class": "fruit",&lt;BR /&gt;
              "score": 0.788&lt;BR /&gt;
            },&lt;BR /&gt;
            {&lt;BR /&gt;
              "class": "diet (food)",&lt;BR /&gt;
              "score": 0.528,&lt;BR /&gt;
              "type_hierarchy": "/food/diet (food)"&lt;BR /&gt;
            },&lt;BR /&gt;
            {&lt;BR /&gt;
              "class": "food",&lt;BR /&gt;
              "score": 0.528&lt;BR /&gt;
            },&lt;BR /&gt;
            {&lt;BR /&gt;
              "class": "honeydew",&lt;BR /&gt;
              "score": 0.5,&lt;BR /&gt;
              "type_hierarchy": "/fruit/melon/honeydew"&lt;BR /&gt;
            },&lt;BR /&gt;
            {&lt;BR /&gt;
              "class": "melon",&lt;BR /&gt;
              "score": 0.501&lt;BR /&gt;
            },&lt;BR /&gt;
            {&lt;BR /&gt;
              "class": "olive color",&lt;BR /&gt;
              "score": 0.973&lt;BR /&gt;
            },&lt;BR /&gt;
            {&lt;BR /&gt;
              "class": "lemon yellow color",&lt;BR /&gt;
              "score": 0.789&lt;BR /&gt;
            }&lt;BR /&gt;
          ],&lt;BR /&gt;
          "classifier_id": "default",&lt;BR /&gt;
          "name": "default"&lt;BR /&gt;
        }&lt;BR /&gt;
      ],&lt;BR /&gt;
      "image": "fruitbowl.jpg"&lt;BR /&gt;
    }&lt;BR /&gt;
  ],&lt;BR /&gt;
  "images_processed": 1&lt;BR /&gt;
        }&lt;/P&gt;

&lt;P&gt;How can I correctly load a json file and configure parameters for it ?&lt;/P&gt;

&lt;P&gt;Thanks to all in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-file-loading-and-indexing/m-p/359103#M65532</guid>
      <dc:creator>erra27372</dc:creator>
      <dc:date>2020-09-29T16:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Json file loading and indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-file-loading-and-indexing/m-p/359104#M65533</link>
      <description>&lt;P&gt;if its pure-json , you can do indexed extractions&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# inputs.conf
[monitor:///tmp/json_pure/*]
sourcetype=myjson
index=someIndex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#props.conf
[myjson]
INDEXED_EXTRACTIONS = JSON
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In reality, the props.conf may be bit more complex. This is because your data payload will contain time and you need to specify which field it has to extract the time etc.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 16:29:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-file-loading-and-indexing/m-p/359104#M65533</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-11-10T16:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Json file loading and indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Json-file-loading-and-indexing/m-p/359105#M65534</link>
      <description>&lt;P&gt;Hi thanks for writing.&lt;BR /&gt;
I tried to update the two files as you suggested but still not working. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 09:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Json-file-loading-and-indexing/m-p/359105#M65534</guid>
      <dc:creator>erra27372</dc:creator>
      <dc:date>2017-11-13T09:58:53Z</dc:date>
    </item>
  </channel>
</rss>

