<?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 How to configure timestamp recognition for JSON data inputs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-timestamp-recognition-for-JSON-data-inputs/m-p/119984#M32222</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Until now, I had comma separated text inputs from many of my sources. Using props.conf, I could define the timestamp (e.g. which position and look ahead etc). &lt;/P&gt;

&lt;P&gt;However, I anticipate JSON data inputs very shortly.  I'm not sure what would be the steps/process to be able to specify timestamp (i.e. which time component to use for associating with searches) &lt;/P&gt;

&lt;P&gt;Any pointers would be greatly appreciated&lt;/P&gt;

&lt;P&gt;thanks, ronak&lt;/P&gt;</description>
    <pubDate>Thu, 21 May 2015 16:57:21 GMT</pubDate>
    <dc:creator>ronak</dc:creator>
    <dc:date>2015-05-21T16:57:21Z</dc:date>
    <item>
      <title>How to configure timestamp recognition for JSON data inputs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-timestamp-recognition-for-JSON-data-inputs/m-p/119984#M32222</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Until now, I had comma separated text inputs from many of my sources. Using props.conf, I could define the timestamp (e.g. which position and look ahead etc). &lt;/P&gt;

&lt;P&gt;However, I anticipate JSON data inputs very shortly.  I'm not sure what would be the steps/process to be able to specify timestamp (i.e. which time component to use for associating with searches) &lt;/P&gt;

&lt;P&gt;Any pointers would be greatly appreciated&lt;/P&gt;

&lt;P&gt;thanks, ronak&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 16:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-timestamp-recognition-for-JSON-data-inputs/m-p/119984#M32222</guid>
      <dc:creator>ronak</dc:creator>
      <dc:date>2015-05-21T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure timestamp recognition for JSON data inputs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-timestamp-recognition-for-JSON-data-inputs/m-p/119985#M32223</link>
      <description>&lt;P&gt;Shouldn't be any different. Regex is still regex.&lt;/P&gt;

&lt;P&gt;Unless your new inputs are multiple lines per event. Then you might have to do some work to combine them into a single event, but even then, you should still be able to regex your timestamp out.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2015 17:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-timestamp-recognition-for-JSON-data-inputs/m-p/119985#M32223</guid>
      <dc:creator>aweitzman</dc:creator>
      <dc:date>2015-05-21T17:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure timestamp recognition for JSON data inputs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-timestamp-recognition-for-JSON-data-inputs/m-p/119986#M32224</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/192060"&gt;@ronak&lt;/a&gt; you can use INDEXED_EXTRACTIONS = JSON for accomplishing this&lt;/P&gt;

&lt;P&gt;INDEXED_EXTRACTIONS = &amp;lt; CSV|W3C|TSV|PSV|JSON &amp;gt;&lt;BR /&gt;
 * Tells Splunk the type of file and the extraction and/or parsing method Splunk should use&lt;BR /&gt;
  on the file.&lt;BR /&gt;
  CSV  - Comma separated value format&lt;BR /&gt;
  TSV  - Tab-separated value format&lt;BR /&gt;
  PSV  - pipe "|" separated value format&lt;BR /&gt;
  W3C  - W3C Extended Extended Log File Format&lt;BR /&gt;
  JSON - JavaScript Object Notation format&lt;BR /&gt;
 * These settings default the values of the remaining settings to the&lt;BR /&gt;
  appropriate values for these known formats.&lt;BR /&gt;
 * Defaults to unset.&lt;/P&gt;

&lt;P&gt;in props.conf on the UF set in $SPLUNK_HOME/etc/system/local/props.conf:&lt;/P&gt;

&lt;P&gt;[your_sourcetype]&lt;BR /&gt;
 INDEXED_EXTRACTIONS = JSON&lt;BR /&gt;
 KV_MODE = none&lt;/P&gt;

&lt;P&gt;restart splunk&lt;BR /&gt;
$SPLUNK_HOME/bin&lt;BR /&gt;
./splunk restart&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Extractfieldsfromfileheadersatindextime" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-timestamp-recognition-for-JSON-data-inputs/m-p/119986#M32224</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2020-09-28T20:01:47Z</dc:date>
    </item>
  </channel>
</rss>

