<?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: Timestamp extraction with 2 timestamp fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596655#M104157</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244915"&gt;@Radcriminal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in my Splunk it's running adding&amp;nbsp;MAX_TIMESTAMP_LOOKAHEAD = 10:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT = %s
TIME_PREFIX = \"time\":\s
MAX_TIMESTAMP_LOOKAHEAD = 10&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 06:26:33 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-05-06T06:26:33Z</dc:date>
    <item>
      <title>Timestamp extraction with 2 timestamp fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596517#M104139</link>
      <description>&lt;P&gt;I have a HEC output coming to my hec receiver&amp;nbsp;services/collector/event?auto_extract_timestamp=true&lt;/P&gt;&lt;P&gt;I want to extract time from field named "time".&lt;/P&gt;&lt;P&gt;The format of the event is like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
	"event": 
		{
			"@timestamp": "2022-05-05T10:22:44.965Z"
			"time": 1651746176018,
			"my_text": "Pony 1 has left the barn"
		}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a prop.conf that have following configuration:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CHARSET=UTF-8
KV_MODE=json
LINE_BREAKER=([\r\n]+)
MAX_TIMESTAMP_LOOKAHEAD=13
NO_BINARY_CHECK=true
SHOULD_LINEMERGE=true
TIME_FORMAT=%s%3N
TIME_PREFIX=\"time\":&lt;/LI-CODE&gt;&lt;P&gt;In result, my timestamp is extracted from field "@timestamp" and I was experimenting a lot with TIME_PREFIX field.&lt;/P&gt;&lt;P&gt;But when I manually upload the json with a file, the field I need is parsed ok and "@timestamp" is ignored.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596517#M104139</guid>
      <dc:creator>Radcriminal</dc:creator>
      <dc:date>2022-05-05T13:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction with 2 timestamp fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596520#M104140</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244915"&gt;@Radcriminal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried to add a space between the prefix and the value?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_PREFIX=\"time\":\s+&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 13:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596520#M104140</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-05T13:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction with 2 timestamp fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596531#M104141</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried right now. Did not work, still extracting time from&amp;nbsp;@timestamp&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 14:18:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596531#M104141</guid>
      <dc:creator>Radcriminal</dc:creator>
      <dc:date>2022-05-05T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction with 2 timestamp fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596534#M104142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244915"&gt;@Radcriminal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried %f instead %s?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_PREFIX = \"time\":\s+
TIME_FORMAT = %f&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 14:31:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596534#M104142</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-05T14:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction with 2 timestamp fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596543#M104143</link>
      <description>&lt;P&gt;Nothing changed. I also tried to fall back TIME_PREFIX to my initial value. Result is the same.&lt;BR /&gt;&lt;BR /&gt;Why does it parse correctly when I try to upload .txt or .json and choose my sourcetype, but when it comes from hec - everything works different?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 14:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596543#M104143</guid>
      <dc:creator>Radcriminal</dc:creator>
      <dc:date>2022-05-05T14:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction with 2 timestamp fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596589#M104148</link>
      <description>&lt;P&gt;I found out that&amp;nbsp;debug/refresh url does not refresh configuration for my sourcetype. After complete restart splunk indexer - time became parsing.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 17:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596589#M104148</guid>
      <dc:creator>Radcriminal</dc:creator>
      <dc:date>2022-05-05T17:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction with 2 timestamp fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596590#M104149</link>
      <description>&lt;P&gt;What is the source of those events? Can't you simply provide a time field along with the event contents? That would be the simplest solution - no parsing whatsoever, better performance on the input...&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 18:03:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596590#M104149</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-05-05T18:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction with 2 timestamp fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596655#M104157</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244915"&gt;@Radcriminal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in my Splunk it's running adding&amp;nbsp;MAX_TIMESTAMP_LOOKAHEAD = 10:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT = %s
TIME_PREFIX = \"time\":\s
MAX_TIMESTAMP_LOOKAHEAD = 10&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 06:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-extraction-with-2-timestamp-fields/m-p/596655#M104157</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-06T06:26:33Z</dc:date>
    </item>
  </channel>
</rss>

