<?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 read json file in the _raw field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/read-json-file-in-the-raw-field/m-p/550507#M91415</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to read the json data into the Splunk. I use the Webtools |curl for that. However at the moment I do not have access to the data from Splunk, but what I have is the data in the json form in the file.&lt;/P&gt;&lt;P&gt;In the meantime until I get the proper access to the data per |curl, I would like to start already with writing the SPL processing it and for that I would like to read it from the file.&lt;/P&gt;&lt;P&gt;How would I do it? How would I read the datafile in json format that I get it in one single field in Splunk, like _raw? From there I could pick it and manipulate further with spath. I do not really want to index the file, I would just like to read it into a single field, that I have the same starting situation as with the curl call.&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 10:13:05 GMT</pubDate>
    <dc:creator>damucka</dc:creator>
    <dc:date>2021-05-05T10:13:05Z</dc:date>
    <item>
      <title>read json file in the _raw field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/read-json-file-in-the-raw-field/m-p/550507#M91415</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to read the json data into the Splunk. I use the Webtools |curl for that. However at the moment I do not have access to the data from Splunk, but what I have is the data in the json form in the file.&lt;/P&gt;&lt;P&gt;In the meantime until I get the proper access to the data per |curl, I would like to start already with writing the SPL processing it and for that I would like to read it from the file.&lt;/P&gt;&lt;P&gt;How would I do it? How would I read the datafile in json format that I get it in one single field in Splunk, like _raw? From there I could pick it and manipulate further with spath. I do not really want to index the file, I would just like to read it into a single field, that I have the same starting situation as with the curl call.&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kamil&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 10:13:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/read-json-file-in-the-raw-field/m-p/550507#M91415</guid>
      <dc:creator>damucka</dc:creator>
      <dc:date>2021-05-05T10:13:05Z</dc:date>
    </item>
  </channel>
</rss>

