<?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 parsing_err=&amp;quot;No data&amp;quot; JSON Works in Add Data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/parsing-err-quot-No-data-quot-JSON-Works-in-Add-Data/m-p/563362#M100370</link>
    <description>&lt;P&gt;Wondered if someone can assist me, we're trying to send some log files from AWS in JSON format, coming over as an event. ive copied the log into a text file, gone ADD DATA and initially it fails but then changing sourcetype to _json it formats it fine. However when trying to send the data in properly, i just get a parsing error, is there an easy way to identify whats causing this? the format is as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"time": "1628855079519",&lt;BR /&gt;"host": "sgw-3451B77A",&lt;BR /&gt;"source": "share-114D5B31",&lt;BR /&gt;"sourcetype": "aws:storagegateway",&lt;BR /&gt;"sourceAddress": "xx.xx.xx.xx",&lt;BR /&gt;"accountDomain": "XXX",&lt;BR /&gt;"accountName": "server_name",&lt;BR /&gt;"type": "FileSystemAudit",&lt;BR /&gt;"version": "1.0",&lt;BR /&gt;"objectType": "File",&lt;BR /&gt;"bucket": "test-test-test",&lt;BR /&gt;"objectName": "/random-210813-1230.toSend",&lt;BR /&gt;"shareName": "test-test-test",&lt;BR /&gt;"operation": "ReadData",&lt;BR /&gt;"timestamp": "1333222111111",&lt;BR /&gt;"gateway": "aaa-XXXXXXA",&lt;BR /&gt;"status": "Success"&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2021 06:31:57 GMT</pubDate>
    <dc:creator>lavster</dc:creator>
    <dc:date>2021-08-16T06:31:57Z</dc:date>
    <item>
      <title>parsing_err="No data" JSON Works in Add Data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-err-quot-No-data-quot-JSON-Works-in-Add-Data/m-p/563362#M100370</link>
      <description>&lt;P&gt;Wondered if someone can assist me, we're trying to send some log files from AWS in JSON format, coming over as an event. ive copied the log into a text file, gone ADD DATA and initially it fails but then changing sourcetype to _json it formats it fine. However when trying to send the data in properly, i just get a parsing error, is there an easy way to identify whats causing this? the format is as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"time": "1628855079519",&lt;BR /&gt;"host": "sgw-3451B77A",&lt;BR /&gt;"source": "share-114D5B31",&lt;BR /&gt;"sourcetype": "aws:storagegateway",&lt;BR /&gt;"sourceAddress": "xx.xx.xx.xx",&lt;BR /&gt;"accountDomain": "XXX",&lt;BR /&gt;"accountName": "server_name",&lt;BR /&gt;"type": "FileSystemAudit",&lt;BR /&gt;"version": "1.0",&lt;BR /&gt;"objectType": "File",&lt;BR /&gt;"bucket": "test-test-test",&lt;BR /&gt;"objectName": "/random-210813-1230.toSend",&lt;BR /&gt;"shareName": "test-test-test",&lt;BR /&gt;"operation": "ReadData",&lt;BR /&gt;"timestamp": "1333222111111",&lt;BR /&gt;"gateway": "aaa-XXXXXXA",&lt;BR /&gt;"status": "Success"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 06:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-err-quot-No-data-quot-JSON-Works-in-Add-Data/m-p/563362#M100370</guid>
      <dc:creator>lavster</dc:creator>
      <dc:date>2021-08-16T06:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: parsing_err="No data" JSON Works in Add Data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-err-quot-No-data-quot-JSON-Works-in-Add-Data/m-p/563520#M100386</link>
      <description>&lt;P&gt;Did you set any of the big six configurations below to help Splunk parse the data more efficiently (props.conf)?&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;[aws:storagegateway]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;TIME_PREFIX =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;MAX_TIMESTAMP_LOOKAHEAD =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TIME_FORMAT =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SHOULD_LINEMERGE = false&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LINE_BREAKER =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;TRUNCATE = 10000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I recommend you set "KV_MODE = json" instead of the default "KV_MODE = auto" for this sourcetype on your search head/search head cluster to prevent any potential issues with the "maxchars" config in limits.conf.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 20:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-err-quot-No-data-quot-JSON-Works-in-Add-Data/m-p/563520#M100386</guid>
      <dc:creator>m_pham</dc:creator>
      <dc:date>2021-08-16T20:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: parsing_err="No data" JSON Works in Add Data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-err-quot-No-data-quot-JSON-Works-in-Add-Data/m-p/563589#M100400</link>
      <description>&lt;P&gt;Thanks for getting back to me, i worked it out in the end.&lt;/P&gt;&lt;P&gt;As it was being sent through as an event, i had to wrap every KVP in "event":{} and that sorted it out. took quite a bit of work with curl.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 06:08:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-err-quot-No-data-quot-JSON-Works-in-Add-Data/m-p/563589#M100400</guid>
      <dc:creator>lavster</dc:creator>
      <dc:date>2021-08-17T06:08:51Z</dc:date>
    </item>
  </channel>
</rss>

