<?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 from json in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-json/m-p/560624#M92657</link>
    <description>&lt;P&gt;Thanks for your answer, it was helpfull&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 15:24:11 GMT</pubDate>
    <dc:creator>Ekino</dc:creator>
    <dc:date>2021-07-23T15:24:11Z</dc:date>
    <item>
      <title>timestamp extraction from json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-json/m-p/560467#M92641</link>
      <description>&lt;P&gt;Hi Splunk Gurus&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you someone help me to resolve my Issue with timestamp extraction?&lt;/P&gt;&lt;P&gt;The Issue is that when I want to create a sourcetype with custom timestamp via advanced configuration&lt;/P&gt;&lt;P&gt;where I defined TIME_PREFIX as regular expression ^(?:[^\}\n]*\}){4},\{"\w+":"(?P&amp;lt;timestamp_ex&amp;gt;[^"]+) then timesstamp extraction is not working and I getting&amp;nbsp; error "failed to parse timestamp. Defaulting to file modtime."&lt;/P&gt;&lt;P&gt;regular expresion I got from splunk field extraction. Why Splunk doesn't accept my regex which was generated by Slunk itself? and tested out via regex101.com where the expression is working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="extract_fields.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15191i6CBEF830A92BC45F/image-size/large?v=v2&amp;amp;px=999" role="button" title="extract_fields.png" alt="extract_fields.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="set_source_type.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15190iEE936CCA7FF13A6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="set_source_type.png" alt="set_source_type.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 12:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-json/m-p/560467#M92641</guid>
      <dc:creator>Ekino</dc:creator>
      <dc:date>2021-07-22T12:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction from json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-json/m-p/560477#M92642</link>
      <description>&lt;P&gt;The TIME_PREFIX setting does not tell Splunk how to extract the timestamp field.&amp;nbsp; It merely tells Splunk where to *find* the timestamp.&amp;nbsp; The regex should describe the text that comes right before the timestamp.&amp;nbsp; There's no need for capture groups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As is normally the case with the Splunk field extractor, the regex it generates is overly verbose.&amp;nbsp; It's rarely necessary to describe everything from the beginning of the event until the timestamp - all you need is just enough to find the timestamp.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 14:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-json/m-p/560477#M92642</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-22T14:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extraction from json</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-json/m-p/560624#M92657</link>
      <description>&lt;P&gt;Thanks for your answer, it was helpfull&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 15:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extraction-from-json/m-p/560624#M92657</guid>
      <dc:creator>Ekino</dc:creator>
      <dc:date>2021-07-23T15:24:11Z</dc:date>
    </item>
  </channel>
</rss>

