<?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 Headaches loading JSON log file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Headaches-loading-JSON-log-file/m-p/193455#M38571</link>
    <description>&lt;P&gt;My apologies if this is elementary... I know the following snippet from my JSON log file is not structurally sound but even cleaning it up by adding the proper closing braces and brackets did not help. I have two log files - one that details direct 1:1 orders (order=X, targetId=y) and the other details batch orders (order=x, targetID=a,b,c). The first is in a simple rows and columns format and I have ingested it just fine. The second is in JSON format. I can't seem to figure out how to load the file into Splunk via Add Data. I have tried both the original format and the structurally correct format below. I know how to use the multi-value commands once I get the data in. I just can't see to figure out how to get the data in. Any help would be greatly appreciated!&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Original format:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;5435545     {&lt;BR /&gt;
    "culture": "en-US",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "EntityIds",&lt;BR /&gt;
            "original_value": null,&lt;BR /&gt;
            "new_value": [&lt;BR /&gt;
                1067526,&lt;BR /&gt;
                1067525,&lt;BR /&gt;
                1067521,&lt;BR /&gt;
5435547     {&lt;BR /&gt;
    "culture": "",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "ExternalReference",&lt;BR /&gt;
            "original_value": null,&lt;BR /&gt;
            "new_value": "c18a3263-f5b3-4d41-9c44-a48d00d901e9"&lt;BR /&gt;
        },&lt;BR /&gt;
        {&lt;BR /&gt;
5436549     {&lt;BR /&gt;
    "culture": "",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "Status",&lt;BR /&gt;
            "original_value": "Created",&lt;BR /&gt;
            "new_value": "Completed"&lt;BR /&gt;
        },&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "PackageType",&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Corrected format:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;5435545     {&lt;BR /&gt;
    "culture": "en-US",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "EntityIds",&lt;BR /&gt;
            "original_value": null,&lt;BR /&gt;
            "new_value": [&lt;BR /&gt;
                1067526,&lt;BR /&gt;
                1067525,&lt;BR /&gt;
                1067521&lt;BR /&gt;
            ]&lt;BR /&gt;
        }&lt;BR /&gt;
    ]&lt;BR /&gt;
}&lt;BR /&gt;
5435547     {&lt;BR /&gt;
    "culture": "",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "ExternalReference",&lt;BR /&gt;
            "original_value": null,&lt;BR /&gt;
            "new_value": "c18a3263-f5b3-4d41-9c44-a48d00d901e9"&lt;BR /&gt;
        }&lt;BR /&gt;
    ]&lt;BR /&gt;
}&lt;BR /&gt;
5436549     {&lt;BR /&gt;
    "culture": "",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "Status",&lt;BR /&gt;
            "original_value": "Created",&lt;BR /&gt;
            "new_value": "Completed"&lt;BR /&gt;
        },&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "PackageType"&lt;BR /&gt;
        }&lt;BR /&gt;
    ]&lt;BR /&gt;
}&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 19:57:06 GMT</pubDate>
    <dc:creator>kmcarrol</dc:creator>
    <dc:date>2020-09-28T19:57:06Z</dc:date>
    <item>
      <title>Headaches loading JSON log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Headaches-loading-JSON-log-file/m-p/193455#M38571</link>
      <description>&lt;P&gt;My apologies if this is elementary... I know the following snippet from my JSON log file is not structurally sound but even cleaning it up by adding the proper closing braces and brackets did not help. I have two log files - one that details direct 1:1 orders (order=X, targetId=y) and the other details batch orders (order=x, targetID=a,b,c). The first is in a simple rows and columns format and I have ingested it just fine. The second is in JSON format. I can't seem to figure out how to load the file into Splunk via Add Data. I have tried both the original format and the structurally correct format below. I know how to use the multi-value commands once I get the data in. I just can't see to figure out how to get the data in. Any help would be greatly appreciated!&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Original format:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;5435545     {&lt;BR /&gt;
    "culture": "en-US",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "EntityIds",&lt;BR /&gt;
            "original_value": null,&lt;BR /&gt;
            "new_value": [&lt;BR /&gt;
                1067526,&lt;BR /&gt;
                1067525,&lt;BR /&gt;
                1067521,&lt;BR /&gt;
5435547     {&lt;BR /&gt;
    "culture": "",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "ExternalReference",&lt;BR /&gt;
            "original_value": null,&lt;BR /&gt;
            "new_value": "c18a3263-f5b3-4d41-9c44-a48d00d901e9"&lt;BR /&gt;
        },&lt;BR /&gt;
        {&lt;BR /&gt;
5436549     {&lt;BR /&gt;
    "culture": "",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "Status",&lt;BR /&gt;
            "original_value": "Created",&lt;BR /&gt;
            "new_value": "Completed"&lt;BR /&gt;
        },&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "PackageType",&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Corrected format:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;5435545     {&lt;BR /&gt;
    "culture": "en-US",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "EntityIds",&lt;BR /&gt;
            "original_value": null,&lt;BR /&gt;
            "new_value": [&lt;BR /&gt;
                1067526,&lt;BR /&gt;
                1067525,&lt;BR /&gt;
                1067521&lt;BR /&gt;
            ]&lt;BR /&gt;
        }&lt;BR /&gt;
    ]&lt;BR /&gt;
}&lt;BR /&gt;
5435547     {&lt;BR /&gt;
    "culture": "",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "ExternalReference",&lt;BR /&gt;
            "original_value": null,&lt;BR /&gt;
            "new_value": "c18a3263-f5b3-4d41-9c44-a48d00d901e9"&lt;BR /&gt;
        }&lt;BR /&gt;
    ]&lt;BR /&gt;
}&lt;BR /&gt;
5436549     {&lt;BR /&gt;
    "culture": "",&lt;BR /&gt;
    "name": "M.Order:1875681",&lt;BR /&gt;
    "definition": "M.Order",&lt;BR /&gt;
    "property_changes": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "Status",&lt;BR /&gt;
            "original_value": "Created",&lt;BR /&gt;
            "new_value": "Completed"&lt;BR /&gt;
        },&lt;BR /&gt;
        {&lt;BR /&gt;
            "property": "PackageType"&lt;BR /&gt;
        }&lt;BR /&gt;
    ]&lt;BR /&gt;
}&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:57:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Headaches-loading-JSON-log-file/m-p/193455#M38571</guid>
      <dc:creator>kmcarrol</dc:creator>
      <dc:date>2020-09-28T19:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Headaches loading JSON log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Headaches-loading-JSON-log-file/m-p/193456#M38572</link>
      <description>&lt;P&gt;Your corrected format is still not a valid JSON document. It has to start with a curly brace. I suggest that you make sure it is valid first in a JSON editor ex: &lt;A href="https://www.jsoneditoronline.org/"&gt;https://www.jsoneditoronline.org/&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 15:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Headaches-loading-JSON-log-file/m-p/193456#M38572</guid>
      <dc:creator>jimmpoul</dc:creator>
      <dc:date>2015-05-12T15:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Headaches loading JSON log file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Headaches-loading-JSON-log-file/m-p/193457#M38573</link>
      <description>&lt;P&gt;Sure enough!  Thanks a lot! I &lt;STRONG&gt;especially&lt;/STRONG&gt; appreciate the reference since this is for Splunk Answers, not JSON Answers.  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 17:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Headaches-loading-JSON-log-file/m-p/193457#M38573</guid>
      <dc:creator>kmcarrol</dc:creator>
      <dc:date>2015-05-12T17:05:37Z</dc:date>
    </item>
  </channel>
</rss>

