<?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: How can I instruct Splunk to ignore the time fields in a JSON string in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-instruct-Splunk-to-ignore-the-time-fields-in-a-JSON/m-p/150288#M30546</link>
    <description>&lt;P&gt;&lt;CODE&gt;DATETIME_CONFIG=NONE&lt;/CODE&gt; will prevent the timestamp extractor from running.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATETIME_CONFIG = &amp;lt;filename relative to $SPLUNK_HOME&amp;gt;
* Specifies which file configures the timestamp extractor, which identifies timestamps from the
  event text.
* This configuration may also be set to "NONE" to prevent the timestamp extractor from running
  or "CURRENT" to assign the current system time to each event.
  * "CURRENT" will set the time of the event to the time that the event was merged from lines, or
    worded differently, the time it passed through the aggregator processor.
  * "NONE" will leave the event time set to whatever time was selected by the input layer
    * For data sent by splunk forwarders over the splunk protocol, the input layer will be the time
      that was selected on the forwarder by its input behavior (as below).
    * For file-based inputs (monitor, batch) the time chosen will be the modification timestamp on
      the file being read.
    * For other inputs, the time chosen will be the current system time when the event is read from
      the pipe/socket/etc.
  * Both "CURRENT" and "NONE" explicitly disable the per-text timestamp identification, so
    the default event boundary detection (BREAK_ONLY_BEFORE_DATE = true) is likely to not work as
    desired.  When using these settings, use SHOULD_LINEMERGE and/or the BREAK_ONLY_* , MUST_BREAK_*
    settings to control event merging.
* Defaults to /etc/datetime.xml (for example, $SPLUNK_HOME/etc/datetime.xml).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There is also MAX_TIMESTAMP_LOOKAHEAD. You could set this to a lower value so that Splunk can only look a few characters into the event for the timestamp.  You may want to look at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/HowSplunkextractstimestamps" target="_blank"&gt;how timestamp assignment works&lt;/A&gt; as well.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = &amp;lt;integer&amp;gt;
* Specifies how far (in characters) into an event Splunk should look for a timestamp.
* This constraint to timestamp extraction is applied from the point of the TIME_PREFIX-set location.
* For example, if TIME_PREFIX positions a location 11 characters into the event, and 
  MAX_TIMESTAMP_LOOKAHEAD is set to 10, timestamp extraction will be constrained to characters 
  11 through 20.
* If set to 0, or -1, the length constraint for timestamp recognition is
  effectively disabled.  This can have negative performance implications which
  scale with the length of input lines (or with event size when LINE_BREAKER
  is redefined for event splitting).
* Defaults to 150 (characters).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:22:02 GMT</pubDate>
    <dc:creator>aljohnson_splun</dc:creator>
    <dc:date>2020-09-28T18:22:02Z</dc:date>
    <item>
      <title>How can I instruct Splunk to ignore the time fields in a JSON string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-instruct-Splunk-to-ignore-the-time-fields-in-a-JSON/m-p/150287#M30545</link>
      <description>&lt;P&gt;I have an input that has a JSON format:&lt;/P&gt;

&lt;P&gt;{&lt;BR /&gt;
  "a" : 0,&lt;BR /&gt;
  "b" : 0,&lt;BR /&gt;
  "time" : 1418397877,&lt;BR /&gt;
  "timezone" : "-05:00"&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;Problem is that Splunk tries to interpret the "time" and "timzone" fields and I am getting the JSON string truncated (only the first 3 lines). How can I configure the "props.conf" file to ask Splunk to ignore those time fields? &lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2014 18:05:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-instruct-Splunk-to-ignore-the-time-fields-in-a-JSON/m-p/150287#M30545</guid>
      <dc:creator>abassili</dc:creator>
      <dc:date>2014-12-12T18:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I instruct Splunk to ignore the time fields in a JSON string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-instruct-Splunk-to-ignore-the-time-fields-in-a-JSON/m-p/150288#M30546</link>
      <description>&lt;P&gt;&lt;CODE&gt;DATETIME_CONFIG=NONE&lt;/CODE&gt; will prevent the timestamp extractor from running.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATETIME_CONFIG = &amp;lt;filename relative to $SPLUNK_HOME&amp;gt;
* Specifies which file configures the timestamp extractor, which identifies timestamps from the
  event text.
* This configuration may also be set to "NONE" to prevent the timestamp extractor from running
  or "CURRENT" to assign the current system time to each event.
  * "CURRENT" will set the time of the event to the time that the event was merged from lines, or
    worded differently, the time it passed through the aggregator processor.
  * "NONE" will leave the event time set to whatever time was selected by the input layer
    * For data sent by splunk forwarders over the splunk protocol, the input layer will be the time
      that was selected on the forwarder by its input behavior (as below).
    * For file-based inputs (monitor, batch) the time chosen will be the modification timestamp on
      the file being read.
    * For other inputs, the time chosen will be the current system time when the event is read from
      the pipe/socket/etc.
  * Both "CURRENT" and "NONE" explicitly disable the per-text timestamp identification, so
    the default event boundary detection (BREAK_ONLY_BEFORE_DATE = true) is likely to not work as
    desired.  When using these settings, use SHOULD_LINEMERGE and/or the BREAK_ONLY_* , MUST_BREAK_*
    settings to control event merging.
* Defaults to /etc/datetime.xml (for example, $SPLUNK_HOME/etc/datetime.xml).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There is also MAX_TIMESTAMP_LOOKAHEAD. You could set this to a lower value so that Splunk can only look a few characters into the event for the timestamp.  You may want to look at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/HowSplunkextractstimestamps" target="_blank"&gt;how timestamp assignment works&lt;/A&gt; as well.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = &amp;lt;integer&amp;gt;
* Specifies how far (in characters) into an event Splunk should look for a timestamp.
* This constraint to timestamp extraction is applied from the point of the TIME_PREFIX-set location.
* For example, if TIME_PREFIX positions a location 11 characters into the event, and 
  MAX_TIMESTAMP_LOOKAHEAD is set to 10, timestamp extraction will be constrained to characters 
  11 through 20.
* If set to 0, or -1, the length constraint for timestamp recognition is
  effectively disabled.  This can have negative performance implications which
  scale with the length of input lines (or with event size when LINE_BREAKER
  is redefined for event splitting).
* Defaults to 150 (characters).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-instruct-Splunk-to-ignore-the-time-fields-in-a-JSON/m-p/150288#M30546</guid>
      <dc:creator>aljohnson_splun</dc:creator>
      <dc:date>2020-09-28T18:22:02Z</dc:date>
    </item>
  </channel>
</rss>

