<?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 to edit our props.conf to assign a time field in our sample JSON event as the event timestamp? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-our-props-conf-to-assign-a-time-field-in-our-sample/m-p/286408#M86731</link>
    <description>&lt;P&gt;Maybe try TIME_PREFIX as an alternate method?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[vops_json]
TIME_PREFIX = "ALERT_TIMESTAMP": "
TIME_FORMAT = %s
&amp;lt;the rest of your configs&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Jul 2016 19:08:01 GMT</pubDate>
    <dc:creator>twinspop</dc:creator>
    <dc:date>2016-07-28T19:08:01Z</dc:date>
    <item>
      <title>How to edit our props.conf to assign a time field in our sample JSON event as the event timestamp?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-our-props-conf-to-assign-a-time-field-in-our-sample/m-p/286406#M86729</link>
      <description>&lt;P&gt;Can you please tell us how to assign event log time (ALERT_TIMESTAMP fields value ) as the event timestamp (_time)? Seems the below props.conf entry is not working properly. Please review and provide a working sourcetype configuration for extracting fields and assigning timestamp from event data.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[vops_json]
INDEXED_EXTRACTIONS = json
NO_BINARY_CHECK = true
TIMESTAMP_FIELDS = ALERT_TIMESTAMP
TIME_FORMAT = %s
KV_MODE = json
SHOULD_LINEMERGE = True
TRUNCATE = 0
category = Custom
description = JavaScript Object Notation format. For more information, visit http://json.org/
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample Event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
"ALERT_SERVICESTATE": "OK",
"ALERT_VO_RECIEVE_TIME": "1469712777061",
"ALERT_URL": "http://test.url.com/test",
"ALERT_ENTITY_DISPLAY_NAME": "test entity",
"ALERT_ENTITY_STATE": "OK",
"ALERT_MESSAGE_TYPE": "RECOVERY",
"ALERT_MONITOR_NAME": "",
"ALERT_MONITORING_URL": "NAGIOS",
"ALERT_ROUTING_KEY": "admins_support",
"ALERT_TIMESTAMP": "1469712369000",
"ALERT_ENTITY_TYPE": "SERVICE",
"STATE_ACK_MESSAGE": "",
"STATE_ACK_TIMESTAMP": "1469712775000",
"STATE_ACK_USER": "test_coca",
"STATE_ALERT_COUNT": "2",
"STATE_CURRENT_ALERT_PHASE": "ACKED",
"STATE_CURRENT_STATE": "WARNING",
"STATE_ENTITY_ID": "nagios-publisher\/ec2-52-90-166-168.compute-1.amazonaws.com\/Memory",
"STATE_HOST": "ec2-52-90-166-168.compute-1.amazonaws.com",
"STATE_INCIDENT_NAME": "9106",
"STATE_INCIDENT_TIMESTAMP": "1469712369000",
"STATE_LAST_TIMESTAMP": "1469712369000",
"STATE_MONITOR_TYPE": "NAGIOS",
"STATE_SERVICE": "nbcdevfiles-4a23d9b2  \/ Memory"
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-our-props-conf-to-assign-a-time-field-in-our-sample/m-p/286406#M86729</guid>
      <dc:creator>dhavamanis</dc:creator>
      <dc:date>2020-09-29T10:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit our props.conf to assign a time field in our sample JSON event as the event timestamp?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-our-props-conf-to-assign-a-time-field-in-our-sample/m-p/286407#M86730</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[vops_json]
INDEXED_EXTRACTIONS = json
NO_BINARY_CHECK = true
TIMESTAMP_FIELDS = ALERT_TIMESTAMP
TIME_PREFIX = ALERT_TIMESTAMP\"\:\s+\"
TIME_FORMAT = %s
KV_MODE = json
SHOULD_LINEMERGE = True
TRUNCATE = 0
category = Custom
description = JavaScript Object Notation format. For more information, visit &lt;A href="http://json.org/" target="test_blank"&gt;http://json.org/&lt;/A&gt;
disabled = false
pulldown_type = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 19:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-our-props-conf-to-assign-a-time-field-in-our-sample/m-p/286407#M86730</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-28T19:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit our props.conf to assign a time field in our sample JSON event as the event timestamp?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-our-props-conf-to-assign-a-time-field-in-our-sample/m-p/286408#M86731</link>
      <description>&lt;P&gt;Maybe try TIME_PREFIX as an alternate method?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[vops_json]
TIME_PREFIX = "ALERT_TIMESTAMP": "
TIME_FORMAT = %s
&amp;lt;the rest of your configs&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 19:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-our-props-conf-to-assign-a-time-field-in-our-sample/m-p/286408#M86731</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-07-28T19:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit our props.conf to assign a time field in our sample JSON event as the event timestamp?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-our-props-conf-to-assign-a-time-field-in-our-sample/m-p/286409#M86732</link>
      <description>&lt;P&gt;The timestamp appears to be in milliseconds, so try the following &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INDEXED_EXTRACTIONS = json
TIMESTAMP_FIELDS = ALERT_TIMESTAMP
TIME_FORMAT=%s%3N
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 22:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-our-props-conf-to-assign-a-time-field-in-our-sample/m-p/286409#M86732</guid>
      <dc:creator>rarsan_splunk</dc:creator>
      <dc:date>2017-01-04T22:18:31Z</dc:date>
    </item>
  </channel>
</rss>

