<?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 Parsing error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421572#M74131</link>
    <description>&lt;P&gt;Where do I place the props.conf file? I tried making one in $SPLUNK_HOME/etc/system/local and it wants me to be root to create the file. Will this cause any permissions problems? Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2019 14:54:42 GMT</pubDate>
    <dc:creator>ellothere</dc:creator>
    <dc:date>2019-01-23T14:54:42Z</dc:date>
    <item>
      <title>JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421570#M74129</link>
      <description>&lt;P&gt;Setup Splunk monitoring to watch a directory. Files started coming in but with the timestamp not being parsed correctly. I adjusted by Settings &amp;gt; Data &amp;gt; Source Type then I cloned the default &lt;EM&gt;json and clicked Advanced and set the timestamp to this `%d-%m-%Y&lt;/EM&gt;%H:%M:%S` for the field systemTime. (I even tried adding surrounding quotes at one point)&lt;/P&gt;

&lt;P&gt;Example dataset:&lt;BR /&gt;
&lt;CODE&gt;[{&lt;BR /&gt;
"systemTime" : "22-01-2019_15:05:01",&lt;BR /&gt;
"fieldType" : "XXX-XXX",&lt;BR /&gt;
"fieldLocation" : "XXX1",&lt;BR /&gt;
"fieldCommand" : "XXXXXX",&lt;BR /&gt;
"kernalName" : "Linux",&lt;BR /&gt;
"nodeName" : "x86_64",&lt;BR /&gt;
"kernalRelease" : "4.15.0-43-generic",&lt;BR /&gt;
"kernalVersion" : "#46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018",&lt;BR /&gt;
"machine" : "x86_64",&lt;BR /&gt;
"processor" : "x86_64",&lt;BR /&gt;
"hardwarePlatform" : "x86_64",&lt;BR /&gt;
"operatingSystem" : "GNU/Linux",&lt;BR /&gt;
"timeup" : " 15:05:01 up 8 days,  4:48,  2 users,  load average: 0.35, 0.40, 0.31",&lt;BR /&gt;
"soft1Version" : "XXXXX",&lt;BR /&gt;
"soft2Version" : "XXXXXXXX"&lt;BR /&gt;
}]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I noticed the files stopped coming in so I checked &lt;CODE&gt;index=_internal source=*/splunkd.log OR source=*\\splunkd.log  | search *system* log_level=ERROR&lt;/CODE&gt; and found errors like &lt;CODE&gt;ERROR JsonLineBreaker - JSON StreamId:3524616290329204733 had parsing error:Unexpected character while looking for value: '\\'&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Despite the files not being ingested, when I go to Settings &amp;gt; Data Inputs &amp;gt; Files &amp;amp; Directories the file count for that directory continues to rise. &lt;BR /&gt;
It seems to be that if I remove the timestamp part, the file does get correctly processed but _time becomes 1979... &lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 22:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421570#M74129</guid>
      <dc:creator>ellothere</dc:creator>
      <dc:date>2019-01-22T22:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421571#M74130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please try with below configuration in props.conf for your new sourcetype.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourSourcetype]
INDEXED_EXTRACTIONS=JSON
KV_MODE = none
TIMESTAMP_FIELDS=systemTime
TIME_FORMAT=%d-%m-%Y_%H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Jan 2019 10:04:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421571#M74130</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-23T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421572#M74131</link>
      <description>&lt;P&gt;Where do I place the props.conf file? I tried making one in $SPLUNK_HOME/etc/system/local and it wants me to be root to create the file. Will this cause any permissions problems? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 14:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421572#M74131</guid>
      <dc:creator>ellothere</dc:creator>
      <dc:date>2019-01-23T14:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421573#M74132</link>
      <description>&lt;P&gt;Does your splunk instance running as root ? If not then it should not prompt you to create file as root. You need to create file with same user as splunk is running.&lt;/P&gt;

&lt;P&gt;You can create this props.conf in &lt;CODE&gt;$SPLUNK_HOME/etc/system/local&lt;/CODE&gt; or if you have any custom app then &lt;CODE&gt;$SPLUNK_HOME/etc/apps/&amp;lt;CUSTOM_APP&amp;gt;/local&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 14:57:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421573#M74132</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-23T14:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421574#M74133</link>
      <description>&lt;P&gt;None of the events are showing. I created props.conf in &lt;CODE&gt;/opt/splunk/etc/system/local&lt;/CODE&gt; as root and saved it as &lt;CODE&gt;system_json1&lt;/CODE&gt;. I made sure to restart Splunk after this. However, I do not see this new source type via the GUI. Even the old events that had the time incorrectly processed disappeared. &lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421574#M74133</guid>
      <dc:creator>ellothere</dc:creator>
      <dc:date>2019-01-23T15:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421575#M74134</link>
      <description>&lt;P&gt;How are you ingesting data into Splunk ? And configuration which you recently created will apply to new data only, it will not apply to data which is already ingested.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421575#M74134</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-23T15:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421576#M74135</link>
      <description>&lt;P&gt;I am ingesting the data into Splunk by using Settings &amp;gt; Add Data &amp;gt; Monitor  &amp;gt; Files &amp;amp; Directories. I can change the source type for that data by Settings &amp;gt; Data Inputs &amp;gt; Files &amp;amp; Directories. I clicked on the directory that is causing me problems and changed the source type to &lt;CODE&gt;props.conf&lt;/CODE&gt; file and the previous data also disappeared with that. &lt;BR /&gt;
To be clear, Splunk is still showing that the number of files for that directory increment. For whatever reason, the files are not being processed. &lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421576#M74135</guid>
      <dc:creator>ellothere</dc:creator>
      <dc:date>2019-01-23T15:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421577#M74136</link>
      <description>&lt;P&gt;So are you using same sourcetype for previous data and new data ? If you have test instance then I highly recommend to test this in Test Instance.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421577#M74136</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-23T15:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421578#M74137</link>
      <description>&lt;P&gt;Yes, I am currently on the Test Instance. The data source was new and that is why I am just now addressing the incorrect time formatting. I do not know of a way to change the sourcetype using Monitoring without it affecting both the old and new data as it only allows you to specify one. &lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:58:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421578#M74137</guid>
      <dc:creator>ellothere</dc:creator>
      <dc:date>2019-01-23T15:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421579#M74138</link>
      <description>&lt;P&gt;Try to remove &lt;CODE&gt;KV_MODE = none&lt;/CODE&gt; from props.conf and then try again.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 16:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421579#M74138</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-23T16:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: JSON Parsing error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421580#M74139</link>
      <description>&lt;P&gt;Still not happening.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 16:34:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/JSON-Parsing-error/m-p/421580#M74139</guid>
      <dc:creator>ellothere</dc:creator>
      <dc:date>2019-01-23T16:34:30Z</dc:date>
    </item>
  </channel>
</rss>

