<?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: Can you help me with a question about extracting timestamps? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398500#M71054</link>
    <description>&lt;P&gt;There is an extracted field from the events the name for which is STATUS_TIME. I tried using what you gave, it doesn't help&lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2018 13:21:58 GMT</pubDate>
    <dc:creator>manijain</dc:creator>
    <dc:date>2018-10-03T13:21:58Z</dc:date>
    <item>
      <title>Can you help me with a question about extracting timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398498#M71052</link>
      <description>&lt;P&gt;I have below timestamps in my events &lt;/P&gt;

&lt;P&gt;2018-09-14-19.50.21.057230&lt;BR /&gt;
2018-09-14-19.51.10.675968&lt;/P&gt;

&lt;P&gt;I only want to extract hh and mm from them i.e. 19.50 and 19.51&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 12:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398498#M71052</guid>
      <dc:creator>manijain</dc:creator>
      <dc:date>2018-10-03T12:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with a question about extracting timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398499#M71053</link>
      <description>&lt;P&gt;Are you trying to use these as the timestamp for the event, or do you simply want to extract the hour and minute into a field?&lt;/P&gt;

&lt;P&gt;If the latter, then try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval hoursminutes=strftime(yourtimestampfield,"%H.%M")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Oct 2018 12:47:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398499#M71053</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2018-10-03T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with a question about extracting timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398500#M71054</link>
      <description>&lt;P&gt;There is an extracted field from the events the name for which is STATUS_TIME. I tried using what you gave, it doesn't help&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 13:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398500#M71054</guid>
      <dc:creator>manijain</dc:creator>
      <dc:date>2018-10-03T13:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with a question about extracting timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398501#M71055</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval Time=strftime(strptime(STATUS_TIME,"%Y-%m-%d-%H.%M.%S.%3N"),"%H.%M")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try this run anywhere search-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval STATUS_TIME="2018-09-14-19.50.21.057230"|eval Time=strftime(strptime(STATUS_TIME,"%Y-%m-%d-%H.%M.%S.%3N"),"%H.%M")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Oct 2018 13:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398501#M71055</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-03T13:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with a question about extracting timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398502#M71056</link>
      <description>&lt;P&gt;Thanks a lot..this helps&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 12:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-a-question-about-extracting-timestamps/m-p/398502#M71056</guid>
      <dc:creator>manijain</dc:creator>
      <dc:date>2018-10-04T12:08:52Z</dc:date>
    </item>
  </channel>
</rss>

