<?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: Can Splunk read a file in JSON format? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412931#M73062</link>
    <description>&lt;P&gt;Thank You!&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jun 2018 10:06:33 GMT</pubDate>
    <dc:creator>pfabrizi</dc:creator>
    <dc:date>2018-06-29T10:06:33Z</dc:date>
    <item>
      <title>Can Splunk read a file in JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412927#M73058</link>
      <description>&lt;P&gt;We are trying to pull in slack data using function1 which is not work as we are using the new api. We had a call with slack and they suggested to create a custom app. In the interim what we would like to is create a script that fetches the slack events and writes to a file and then use a file monitor to retrieve the events. &lt;BR /&gt;
 Slack returns the data in json, so how would I setup the file monitor to read json?  Or would I just format the data in the script that retrieves slack?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 20:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412927#M73058</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-06-28T20:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk read a file in JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412928#M73059</link>
      <description>&lt;P&gt;Yes you can.&lt;BR /&gt;
There is a predefined sourcetype for json called &lt;CODE&gt;_json&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.1.1/Data/Listofpretrainedsourcetypes"&gt;https://docs.splunk.com/Documentation/Splunk/7.1.1/Data/Listofpretrainedsourcetypes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 20:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412928#M73059</guid>
      <dc:creator>amiftah</dc:creator>
      <dc:date>2018-06-28T20:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk read a file in JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412929#M73060</link>
      <description>&lt;P&gt;Hi Amiftah,&lt;BR /&gt;
            So I would just add this to my inputs.conf?&lt;/P&gt;

&lt;P&gt;source=_json&lt;BR /&gt;
sourcetype=box&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 00:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412929#M73060</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-06-29T00:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk read a file in JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412930#M73061</link>
      <description>&lt;P&gt;@pfabrizi:&lt;/P&gt;

&lt;P&gt;your inputs.conf should look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:////test/sample.json]
disabled = false
index = yourIndex
sourcetype = _json
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can read more about monitoring here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Inputsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 00:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412930#M73061</guid>
      <dc:creator>amiftah</dc:creator>
      <dc:date>2018-06-29T00:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk read a file in JSON format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412931#M73062</link>
      <description>&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 10:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-Splunk-read-a-file-in-JSON-format/m-p/412931#M73062</guid>
      <dc:creator>pfabrizi</dc:creator>
      <dc:date>2018-06-29T10:06:33Z</dc:date>
    </item>
  </channel>
</rss>

