<?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: Epoch Time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550047#M91356</link>
    <description>&lt;P&gt;Please share one full event here for further help. You can anonymize data as needed, but please maintain the format of the event.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 17:09:36 GMT</pubDate>
    <dc:creator>s2_splunk</dc:creator>
    <dc:date>2021-04-30T17:09:36Z</dc:date>
    <item>
      <title>Epoch Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/549840#M91319</link>
      <description>&lt;P&gt;Im onboarding sample logs from a txt file to my local Splunk instance were the time stamp is in a 10 digit format (epoch time format). During the onboarding im applying the following timestamp format&amp;nbsp; strptime("timestamp","%m/%d/%y %H:%M:%S") "timestamp" being the field name in the raw sample in the txt document.&amp;nbsp; But the timestamp is still defaulting to modtime. Any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 13:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/549840#M91319</guid>
      <dc:creator>hmrabet2</dc:creator>
      <dc:date>2021-04-29T13:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/549854#M91321</link>
      <description>&lt;P&gt;strptime is parsing the timestamp field and expecting it to be in the given format, but you have already said it is a 10 digit number (not the format you are trying to parse with)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 14:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/549854#M91321</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-29T14:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/549891#M91329</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.3/Data/Configuretimestamprecognition#Enhanced_strptime.28.29_support" target="_self"&gt;TIME_FORMAT=%s&lt;/A&gt; is the proper way to configure a timestamp in epoch format. If your logs are formatted such that Splunk cannot clearly identify which 10-digit value represents a timestamp, you may need to provide more hints (recommended to be explicit anyways), like TIME_PREFIX, MAX_TIMESTAMP_LOOKAHEAD etc.&lt;/P&gt;&lt;P&gt;If you are able to provide a sample log event, it will be easier to help with more details.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 19:36:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/549891#M91329</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-04-29T19:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/549972#M91338</link>
      <description>&lt;P&gt;Example timestamp in raw logs:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN class="key-name"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t string h"&gt;1617865161&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 09:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/549972#M91338</guid>
      <dc:creator>hmrabet2</dc:creator>
      <dc:date>2021-04-30T09:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550039#M91353</link>
      <description>&lt;LI-CODE lang="markup"&gt;TIME_PREFIX=timestamp:\s
TIME_FORMAT=%s&lt;/LI-CODE&gt;&lt;P&gt;should extract the timestamp properly&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 16:40:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550039#M91353</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-04-30T16:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550040#M91354</link>
      <description>&lt;P&gt;Thanks, i have added the below to the advanced&amp;nbsp; section under timestamp but its still defaulting back to modtime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 16:50:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550040#M91354</guid>
      <dc:creator>hmrabet2</dc:creator>
      <dc:date>2021-04-30T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550047#M91356</link>
      <description>&lt;P&gt;Please share one full event here for further help. You can anonymize data as needed, but please maintain the format of the event.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 17:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550047#M91356</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-04-30T17:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550354#M91397</link>
      <description>&lt;P&gt;Anonymised&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;raw sample:&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"hostname":"ip-xxx-xxx-xxx-xx.eu-west-1.compute.internal","query":"xxxxx.net.","response_code":"NXDOMAIN","size":"89","src_ip":"xx.xxx.xxx.xxx","timestamp":"1617865214"}&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 08:30:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550354#M91397</guid>
      <dc:creator>hmrabet2</dc:creator>
      <dc:date>2021-05-04T08:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550423#M91402</link>
      <description>&lt;P&gt;OK, it's JSON format, that's helpful to know....&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[yourSourcetypeName]
SHOULD_LINEMERGE=false
INDEXED_EXTRACTIONS = json
KV_MODE = none
TIMESTAMP_FIELDS = timestamp
TIME_FORMAT = %s&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;You may have to add other settings here depending on other requirements, like line breakers etc., but this should parse your epoch timestamp as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 15:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time/m-p/550423#M91402</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2021-05-04T15:55:09Z</dc:date>
    </item>
  </channel>
</rss>

