<?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 do I reconfigure _time field? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648567#M16675</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;It has been several days that I'm trying to solve the following issue.&lt;/P&gt;
&lt;P&gt;I'm sending JSON data over tcp (9997), the data arrives completly but, the "_time" field that is saved is the actual indexing time instead of&amp;nbsp; "time" field, that I've added before.&lt;BR /&gt;I tried to configure props.conf as with JSON and with regex but both hasn't work.&lt;/P&gt;
&lt;P&gt;What makes things more wired is that some of the logs that contains another timestamp field are indexed with this field. I was also trying to play arround this but nothing helped.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I'm running an all-in-one deployment from a container.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;------------&lt;/P&gt;
&lt;P&gt;props.conf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[evtx]
 MAX_DAYS_AGO = 10951
#INDEXED_EXTRACTIONS = JSON
#KV_MODE = none
#TRANSFORMS-jsonextraction = json_extract
#TIME_PREFIX = time.:. 
#TIME_FORMAT = %Y-%m-%dT%H:%M:%S
#TIMESTAMP_FIELDS = time
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
SHOULD_LINEMERGE = false
disabled = false
pulldown_type = 1
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%6NZ
TIMESTAMP_FIELDS=time
LINE_BREAKER = ([\r\n]+)
category = Structured
description = ODATA SCPI MPL JSON&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;log sample - time is indexed&amp;nbsp; based on "Event.NewTime":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; { "cribl_breaker":"fallback",
"collector":"in_evtx_to_json",
"time":"2023-05-18T11:41:20.687637Z",
"EventData":{"NewTime":"2023-05-18T11:41:20.697000Z",
"PreviousTime":"2023-05-18T11:41:20.707011Z",
"ProcessId":"0x46c",
"ProcessName":"C:\\Windows\\System32\\svchost.exe",
"SubjectDomainName":"NT AUTHORITY",
"SubjectLogonId":"0x3e5",
"SubjectUserName":"LOCAL SERVICE",
"SubjectUserSid":"S-1-5-19"},
"System":{"Channel":"Security",
"Computer":"test123",
"Correlation":null,
"EventID":4616,
"EventRecordID":108506811,
"Execution":{"#attributes":{"ProcessID":4,
"ThreadID":1752}},
"Keywords":"0x8020000000000000",
"Level":0,
"Opcode":0,
"Provider":{"#attributes":{"Guid":"54849625-5478-4994-A5BA-3E3B0328C30D",
"Name":"Microsoft-Windows-Security-Auditing"}},
"Security":null,
"Task":12288,
"TimeCreated":{"#attributes":{"SystemTime":"2023-05-18T11:41:20.687637Z"}},
"Version":1}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;log samle - time is indexed based on arrival time:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{"cribl_breaker":"fallback",
"collector":"in_evtx_to_json",
"time":"2023-05-06T20:01:58.205343Z",
"EventData":{"HandleId":"0x6a30",
"ObjectServer":"Security",
"ProcessId":"0x4f4",
"ProcessName":"C:\\Windows\\System32\\svchost.exe",
"SubjectDomainName":"test.local",
"SubjectLogonId":"0x3e4",
"SubjectUserName":"test",
"SubjectUserSid":"S-1-5-20"},
"System":{"Channel":"Security",
"Computer":"test123",
"Correlation":null,
"EventID":4658,
"EventRecordID":107343779,
"Execution":{"#attributes":{"ProcessID":4,
"ThreadID":109608}},
"Keywords":"0x8020000000000000",
"Level":0,
"Opcode":0,
"Provider":{"#attributes":{"Guid":"54849625-5478-4994-A5BA-3E3B0328C30D",
"Name":"Microsoft-Windows-Security-Auditing"}},
"Security":null,
"Task":12800,
"TimeCreated":{"#attributes":{"SystemTime":"2023-05-06T20:01:58.205343Z"}},
"Version":0}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2023 15:33:10 GMT</pubDate>
    <dc:creator>Hod152</dc:creator>
    <dc:date>2023-06-30T15:33:10Z</dc:date>
    <item>
      <title>How do I reconfigure _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648567#M16675</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
&lt;P&gt;It has been several days that I'm trying to solve the following issue.&lt;/P&gt;
&lt;P&gt;I'm sending JSON data over tcp (9997), the data arrives completly but, the "_time" field that is saved is the actual indexing time instead of&amp;nbsp; "time" field, that I've added before.&lt;BR /&gt;I tried to configure props.conf as with JSON and with regex but both hasn't work.&lt;/P&gt;
&lt;P&gt;What makes things more wired is that some of the logs that contains another timestamp field are indexed with this field. I was also trying to play arround this but nothing helped.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I'm running an all-in-one deployment from a container.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;------------&lt;/P&gt;
&lt;P&gt;props.conf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[evtx]
 MAX_DAYS_AGO = 10951
#INDEXED_EXTRACTIONS = JSON
#KV_MODE = none
#TRANSFORMS-jsonextraction = json_extract
#TIME_PREFIX = time.:. 
#TIME_FORMAT = %Y-%m-%dT%H:%M:%S
#TIMESTAMP_FIELDS = time
CHARSET = UTF-8
INDEXED_EXTRACTIONS = json
KV_MODE = none
SHOULD_LINEMERGE = false
disabled = false
pulldown_type = 1
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%6NZ
TIMESTAMP_FIELDS=time
LINE_BREAKER = ([\r\n]+)
category = Structured
description = ODATA SCPI MPL JSON&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;log sample - time is indexed&amp;nbsp; based on "Event.NewTime":&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; { "cribl_breaker":"fallback",
"collector":"in_evtx_to_json",
"time":"2023-05-18T11:41:20.687637Z",
"EventData":{"NewTime":"2023-05-18T11:41:20.697000Z",
"PreviousTime":"2023-05-18T11:41:20.707011Z",
"ProcessId":"0x46c",
"ProcessName":"C:\\Windows\\System32\\svchost.exe",
"SubjectDomainName":"NT AUTHORITY",
"SubjectLogonId":"0x3e5",
"SubjectUserName":"LOCAL SERVICE",
"SubjectUserSid":"S-1-5-19"},
"System":{"Channel":"Security",
"Computer":"test123",
"Correlation":null,
"EventID":4616,
"EventRecordID":108506811,
"Execution":{"#attributes":{"ProcessID":4,
"ThreadID":1752}},
"Keywords":"0x8020000000000000",
"Level":0,
"Opcode":0,
"Provider":{"#attributes":{"Guid":"54849625-5478-4994-A5BA-3E3B0328C30D",
"Name":"Microsoft-Windows-Security-Auditing"}},
"Security":null,
"Task":12288,
"TimeCreated":{"#attributes":{"SystemTime":"2023-05-18T11:41:20.687637Z"}},
"Version":1}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;log samle - time is indexed based on arrival time:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{"cribl_breaker":"fallback",
"collector":"in_evtx_to_json",
"time":"2023-05-06T20:01:58.205343Z",
"EventData":{"HandleId":"0x6a30",
"ObjectServer":"Security",
"ProcessId":"0x4f4",
"ProcessName":"C:\\Windows\\System32\\svchost.exe",
"SubjectDomainName":"test.local",
"SubjectLogonId":"0x3e4",
"SubjectUserName":"test",
"SubjectUserSid":"S-1-5-20"},
"System":{"Channel":"Security",
"Computer":"test123",
"Correlation":null,
"EventID":4658,
"EventRecordID":107343779,
"Execution":{"#attributes":{"ProcessID":4,
"ThreadID":109608}},
"Keywords":"0x8020000000000000",
"Level":0,
"Opcode":0,
"Provider":{"#attributes":{"Guid":"54849625-5478-4994-A5BA-3E3B0328C30D",
"Name":"Microsoft-Windows-Security-Auditing"}},
"Security":null,
"Task":12800,
"TimeCreated":{"#attributes":{"SystemTime":"2023-05-06T20:01:58.205343Z"}},
"Version":0}}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 15:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648567#M16675</guid>
      <dc:creator>Hod152</dc:creator>
      <dc:date>2023-06-30T15:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: reconfigure _time field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648638#M16679</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If I check correctly then these props.conf works for me.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ &amp;lt;FIRST&amp;gt; ]
SHOULD_LINEMERGE=true
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
CHARSET=UTF-8
INDEXED_EXTRACTIONS=json
KV_MODE=none
description=First
category=Structured
disabled=false
pulldown_type=true
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%6Q%Z
TIMESTAMP_FIELDS=time&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[ &amp;lt;SECOND&amp;gt; ]
SHOULD_LINEMERGE=true
LINE_BREAKER=([\r\n]+)
NO_BINARY_CHECK=true
CHARSET=UTF-8
INDEXED_EXTRACTIONS=json
KV_MODE=none
description=second
category=Structured
disabled=false
pulldown_type=true
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%6Q%Z
TIMESTAMP_FIELDS=time&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I check these with 9.0.5 and another version and both works as expected.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 11:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648638#M16679</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-06-29T11:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: reconfigure _time field</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648930#M16707</link>
      <description>&lt;P&gt;Thanks for the quick response!&lt;/P&gt;&lt;P&gt;I've tried your solution but, it still not working. My splunk version is 9.0.5&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 11:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648930#M16707</guid>
      <dc:creator>Hod152</dc:creator>
      <dc:date>2023-07-02T11:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reconfigure _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648931#M16708</link>
      <description>&lt;P&gt;First things first - which endpoint are you sending your data to?&lt;/P&gt;&lt;P&gt;By default, unless you specify ?auto_extract_timestamp=true in your HEC endpoint URL, HEC bypasses timestamp recognition from the event itself regardless of whatever you have in it and what props you set.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fevent" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTinput#services.2Fcollector.2Fevent&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 12:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648931#M16708</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-07-02T12:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reconfigure _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648933#M16709</link>
      <description>&lt;P&gt;I'm sending it using cribl over the default port directly to splunk. It's an all in one deployment.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 13:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648933#M16709</guid>
      <dc:creator>Hod152</dc:creator>
      <dc:date>2023-07-02T13:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reconfigure _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648935#M16710</link>
      <description>&lt;P&gt;Have you read the Cribl HEC docs?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cribl.io/stream/destinations-splunk-hec" target="_blank"&gt;https://docs.cribl.io/stream/destinations-splunk-hec&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 15:25:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648935#M16710</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-07-02T15:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reconfigure _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648936#M16711</link>
      <description>&lt;P&gt;I read the Splunk single instance doc which is the how I recive the events, the events are arriving to splunk but not indexed as I need.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 16:07:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648936#M16711</guid>
      <dc:creator>Hod152</dc:creator>
      <dc:date>2023-07-02T16:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reconfigure _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648937#M16712</link>
      <description>&lt;P&gt;Based on port this is not an HEC endpoint. I assume that as used port 9997 it’s using S2S protocol.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 16:30:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648937#M16712</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-07-02T16:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reconfigure _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648939#M16713</link>
      <description>&lt;P&gt;True. I have no idea where I got this HEC from. Might have mixed it with some other thread.&lt;/P&gt;&lt;P&gt;Anyway, the cribl docs say that data for splunk destination is sent as "cooked and parsed" which means that if those docs are correct and the data is indeed sent parsed, the only thing that can happen in index-time on the receiving end is ingest actions.&lt;/P&gt;&lt;P&gt;(A side note - it's also relatively ineffective way to send events bandwidth-wise)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 07:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648939#M16713</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-07-03T07:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I reconfigure _time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648940#M16714</link>
      <description>&lt;P&gt;Thank you, I'll work around &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 19:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-reconfigure-time-field/m-p/648940#M16714</guid>
      <dc:creator>Hod152</dc:creator>
      <dc:date>2023-07-02T19:07:25Z</dc:date>
    </item>
  </channel>
</rss>

