<?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: How do I create a time field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-field/m-p/530726#M149927</link>
    <description>&lt;P&gt;Great query&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;... i need to learn lot of stuff from your search queries!&lt;BR /&gt;&lt;BR /&gt;but could you pls explain us the context here.. i got confused with this request... the question says "&lt;SPAN&gt;I have the EVENT_TIMESTAMP_UTC field"...&amp;nbsp;&lt;BR /&gt;then&amp;nbsp; why "treat the data as in the UTC time-zone" ?!?!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 00:18:38 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2020-11-25T00:18:38Z</dc:date>
    <item>
      <title>How do I create a time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-field/m-p/530104#M149775</link>
      <description>&lt;P&gt;I have the EVENT_TIMESTAMP_UTC field with the values of -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020-11-19 13:50:08.393085
2020-11-19 13:50:08.3517
2020-11-19 13:50:08.306023
2020-11-19 13:50:08.238995
2020-11-19 13:50:08.16885&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a new time field and treat the data as in the UTC time-zone.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 15:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-field/m-p/530104#M149775</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2020-11-19T15:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-field/m-p/530713#M149924</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval EVENT_TIMESTAMP_UTC=split("2020-11-19 13:50:08.393085,2020-11-19 13:50:08.3517,2020-11-19 13:50:08.306023,2020-11-19 13:50:08.238995,2020-11-19 13:50:08.16885",",")
| rename COMMENT as "the logic" 
| mvexpand EVENT_TIMESTAMP_UTC
| rex field=EVENT_TIMESTAMP_UTC "(?&amp;lt;data&amp;gt;\d[\w\-: ]+)\.(?&amp;lt;msecond&amp;gt;\d+)"
| eval msecond=printf("%06d",msecond)
| eval EVENT_TIMESTAMP_UTC=strptime(data.msecond,"%F %T%6Q")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Nov 2020 23:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-field/m-p/530713#M149924</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-11-24T23:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-field/m-p/530726#M149927</link>
      <description>&lt;P&gt;Great query&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;... i need to learn lot of stuff from your search queries!&lt;BR /&gt;&lt;BR /&gt;but could you pls explain us the context here.. i got confused with this request... the question says "&lt;SPAN&gt;I have the EVENT_TIMESTAMP_UTC field"...&amp;nbsp;&lt;BR /&gt;then&amp;nbsp; why "treat the data as in the UTC time-zone" ?!?!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 00:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-field/m-p/530726#M149927</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-11-25T00:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a time field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-field/m-p/530733#M149928</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I thought the log was &lt;EM&gt;JSON&lt;/EM&gt;, so I started by making the multi-value to single.&lt;BR /&gt;We can use &lt;STRONG&gt;rex&lt;/STRONG&gt;&amp;nbsp;with &lt;STRONG&gt;max_match&lt;/STRONG&gt; and do it all at once with &lt;STRONG&gt;mvmap&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;If it was a single value, &lt;STRONG&gt;rex and eval&lt;/STRONG&gt; are enough.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 01:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-a-time-field/m-p/530733#M149928</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-11-25T01:06:16Z</dc:date>
    </item>
  </channel>
</rss>

