<?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: New Source type and Timestamp from Event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492711#M84229</link>
    <description>&lt;P&gt;Thank you for the response. &lt;BR /&gt;
I tried below setting and that did not work either. The event still got the current timestamp. &lt;/P&gt;

&lt;P&gt;DATETIME_CONFIG=&lt;BR /&gt;&lt;BR /&gt;
TIMESTAMP_FIELDS = LogStart&lt;BR /&gt;
TIME_PREFIX = "LogStart": "&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=23&lt;BR /&gt;
TZ=GMT&lt;/P&gt;

&lt;P&gt;Not sure what is wrong! Any pointer to resolve? TIA&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:20:35 GMT</pubDate>
    <dc:creator>santhoshvelling</dc:creator>
    <dc:date>2020-09-30T05:20:35Z</dc:date>
    <item>
      <title>New Source type and Timestamp from Event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492709#M84227</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;

&lt;P&gt;I have a even like below  generated from my application.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;{&lt;BR /&gt;
    "index": "exp_prod",&lt;BR /&gt;
    "host": "myhost.com",&lt;BR /&gt;
    "source": "app.logs",&lt;BR /&gt;
    "sourcetype": "_json",  &lt;BR /&gt;
    "event": [&lt;BR /&gt;
        {&lt;BR /&gt;
            "Sender": "AZSB",&lt;BR /&gt;
            "Status": "COMPLETED",&lt;BR /&gt;
            "ApplicationMessageType": "utility",&lt;BR /&gt;
            "CustomStatus": "COMPLETED",&lt;BR /&gt;
            "ApplicationMessageId": "",&lt;BR /&gt;
            "MessageGuid": "AF61XzlbeOSc7c1yBkfQ-dTqo8VI",&lt;BR /&gt;
            "LogStart": "2020-05-08T13:31:37.053",&lt;BR /&gt;
            "Receiver": "JMS",&lt;BR /&gt;
            "CorrelationId": "AF61Xzm4KCX0sO8q3PGewmmlZqem",&lt;BR /&gt;
            "LogEnd": "2020-05-08T13:31:37.063"&lt;BR /&gt;
        },&lt;BR /&gt;
        {&lt;BR /&gt;
            "Sender": "AZSB",&lt;BR /&gt;
            "Status": "COMPLETED",&lt;BR /&gt;
            "ApplicationMessageType": "Article",&lt;BR /&gt;
            "CustomStatus": "NA",&lt;BR /&gt;
            "ApplicationMessageId": "180730",&lt;BR /&gt;
            "MessageGuid": "AF61Xzkb-vFb_xEgpfQw1mgNbPc5",&lt;BR /&gt;
            "LogStart": "2020-05-08T13:31:37.046",&lt;BR /&gt;
            "Receiver": "JMS",&lt;BR /&gt;
            "CorrelationId": "AF61XzkvcPiugQGqmXc6LrN3GQ42",&lt;BR /&gt;
            "LogEnd": "2020-05-08T13:31:37.063"&lt;BR /&gt;
        }&lt;BR /&gt;
    ]&lt;BR /&gt;
}&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Now when I send this event to Spluk Cloud using HEC, it create two event's but the timestamp if the event is the current timestamp. However I want event time stamp to be populated from &lt;STRONG&gt;LogStart&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;How to achieve this? I tried customer source type like below, but the result is same. Please assist.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8848i7B1E2A992B41F327/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 15:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492709#M84227</guid>
      <dc:creator>santhoshvelling</dc:creator>
      <dc:date>2020-05-08T15:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: New Source type and Timestamp from Event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492710#M84228</link>
      <description>&lt;P&gt;When you use timestamp fields, Splunk combines all of the listed fields and then applies the timestamp format.  In this example, the LogStart and LogEnd fields combine to "2020-05-08T13:31:37.0462020-05-08T13:31:37.063", which does not match the specified format so Splunk ignores it and sets the event time to the current time.&lt;/P&gt;

&lt;P&gt;The Timestamp fields setting should contain the name of the event field(s) can together describe when the event happened.  It does not need to list every timestamp in the event.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 18:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492710#M84228</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-08T18:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: New Source type and Timestamp from Event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492711#M84229</link>
      <description>&lt;P&gt;Thank you for the response. &lt;BR /&gt;
I tried below setting and that did not work either. The event still got the current timestamp. &lt;/P&gt;

&lt;P&gt;DATETIME_CONFIG=&lt;BR /&gt;&lt;BR /&gt;
TIMESTAMP_FIELDS = LogStart&lt;BR /&gt;
TIME_PREFIX = "LogStart": "&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=23&lt;BR /&gt;
TZ=GMT&lt;/P&gt;

&lt;P&gt;Not sure what is wrong! Any pointer to resolve? TIA&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:20:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492711#M84229</guid>
      <dc:creator>santhoshvelling</dc:creator>
      <dc:date>2020-09-30T05:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: New Source type and Timestamp from Event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492712#M84230</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;[your souecetype]
SHOULD_LINEMERGE=false
LINE_BREAKER=(\[|,)\s*{\s*\"Sender
NO_BINARY_CHECK=true
SEDCMD-trim=s/\].*//g
TIME_PREFIX=LogStart\":\s\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You'll have to split it up.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 23:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492712#M84230</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-08T23:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: New Source type and Timestamp from Event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492713#M84231</link>
      <description>&lt;P&gt;Try omitting &lt;CODE&gt;DATETIME_CONFIG&lt;/CODE&gt;.  Also, change &lt;CODE&gt;TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 12:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/New-Source-type-and-Timestamp-from-Event/m-p/492713#M84231</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-12T12:40:18Z</dc:date>
    </item>
  </channel>
</rss>

