<?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: extracting timestamp from multiple timestamp in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155079#M185677</link>
    <description>&lt;P&gt;Use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = .*?host=\d+\.\d+\.\d+\.\d+\s+\"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 May 2015 16:32:30 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-05-19T16:32:30Z</dc:date>
    <item>
      <title>extracting timestamp from multiple timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155074#M185672</link>
      <description>&lt;P&gt;HI &lt;/P&gt;

&lt;P&gt;I have the following event with multiple time stamp&lt;/P&gt;

&lt;P&gt;Feb 18 2015 16:20:00:456 host=127.XX.XXX.XX 21:20:00:456 XXXX&lt;/P&gt;

&lt;P&gt;I need splunk to recognize timstamp from :&lt;/P&gt;

&lt;P&gt;the following onwards&lt;/P&gt;

&lt;P&gt;Feb 18 2015 16:20:00:456 host=127.XX.XXX.XX "21:20:00:456 XXXX"&lt;/P&gt;

&lt;P&gt;the ones marked in " XXX"&lt;/P&gt;

&lt;P&gt;What entry do i need to put in props.conf to achieve this.&lt;/P&gt;

&lt;P&gt;Please let me know&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 22:25:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155074#M185672</guid>
      <dc:creator>mmohiuddin</dc:creator>
      <dc:date>2015-02-18T22:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: extracting timestamp from multiple timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155075#M185673</link>
      <description>&lt;P&gt;Hi @mmohiuddin&lt;/P&gt;

&lt;P&gt;Just to clarify for people who can help you, you want to extract the timestamp &lt;STRONG&gt;21:20:00:456&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 00:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155075#M185673</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-02-19T00:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: extracting timestamp from multiple timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155076#M185674</link>
      <description>&lt;P&gt;yes I want to extract the timestamp 21:20:00:456&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 13:18:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155076#M185674</guid>
      <dc:creator>mmohiuddin</dc:creator>
      <dc:date>2015-02-19T13:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: extracting timestamp from multiple timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155077#M185675</link>
      <description>&lt;P&gt;This is the actual log event:&lt;/P&gt;

&lt;P&gt;Feb 19 09:00:55 133.17.1.124 Feb 19 14:00:56 LDC-N26-SSLVPN4 AN_SQUID_LOG 1424354456.021 1 10.9.8.21 TCP_MISS/200 1670 GET /myaccess/logout.gif  - DIRECT/205.145.103.151 -&lt;/P&gt;

&lt;P&gt;It is coming from syslog event. &lt;/P&gt;

&lt;P&gt;I need splunk to extract timestamp from &lt;/P&gt;

&lt;P&gt;Feb 19 14:00:56 LDC-N26-SSLVPN4 &lt;/P&gt;

&lt;P&gt;onwards.&lt;/P&gt;

&lt;P&gt;This is what I have entered in props.conf on indexer. Source is udp:514&lt;/P&gt;

&lt;P&gt;[udp:\514]&lt;BR /&gt;
TIME_PREFIX = \w+\s+\d+\s+\d+:\d+:\d+\s+\d+.\d+.\d+.\d+\s+&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 30&lt;/P&gt;

&lt;P&gt;But even after doing that and restarting indexer, I am still not able to extract the required timestamp&lt;/P&gt;

&lt;P&gt;Feb 19 14:00:56 LDC-N26-SSLVPN4 &lt;/P&gt;

&lt;P&gt;Please let me know what I am missing here&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:58:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155077#M185675</guid>
      <dc:creator>mmohiuddin</dc:creator>
      <dc:date>2020-09-28T18:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: extracting timestamp from multiple timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155078#M185676</link>
      <description>&lt;P&gt;If time is ALWAYS exactly 5 hours off, the just make a timezone shift off the first time in the event. That would be the easiest thing to do.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2015 04:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155078#M185676</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2015-02-23T04:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: extracting timestamp from multiple timestamp</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155079#M185677</link>
      <description>&lt;P&gt;Use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = .*?host=\d+\.\d+\.\d+\.\d+\s+\"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 May 2015 16:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-timestamp-from-multiple-timestamp/m-p/155079#M185677</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-19T16:32:30Z</dc:date>
    </item>
  </channel>
</rss>

