<?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: TIme Conversion in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519007#M146137</link>
    <description>&lt;P&gt;What do you mean by raw time field? What fields do you have? Do you get anything in the time field you created?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 08:06:13 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-09-11T08:06:13Z</dc:date>
    <item>
      <title>TIme Conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519004#M146135</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;how to change the below raw time field to yyyy-mm-dd hh:mm:ss&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2020-09-09T18:21:12.2685607Z&lt;BR /&gt;&lt;BR /&gt;am using the below query and didnt get any result&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;eval time = strftime(activityDateTime,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;&lt;BR /&gt;Can someone please help&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 07:26:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519004#M146135</guid>
      <dc:creator>krvamsireddy</dc:creator>
      <dc:date>2020-09-11T07:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: TIme Conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519007#M146137</link>
      <description>&lt;P&gt;What do you mean by raw time field? What fields do you have? Do you get anything in the time field you created?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519007#M146137</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-11T08:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: TIme Conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519009#M146138</link>
      <description>&lt;P&gt;strftime is used to convert unix timestamp to human readable format.&lt;/P&gt;&lt;P&gt;you should use strptime to convert time which is already in human readable format if you need to format it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval activityDateTime="2020-09-09T18:21:12.2685607Z"
| eval time = strftime(strptime(activityDateTime,"%Y-%m-%dT%H:%M:%S"),"%Y-%m-%d %H:%M:%S")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519009#M146138</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-11T08:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: TIme Conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519016#M146139</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krvamsireddy_2-1599812787173.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10774i0D341A706CC5D272/image-size/medium?v=v2&amp;amp;px=400" role="button" title="krvamsireddy_2-1599812787173.png" alt="krvamsireddy_2-1599812787173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still in the old format, and time column is still blank&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519016#M146139</guid>
      <dc:creator>krvamsireddy</dc:creator>
      <dc:date>2020-09-11T08:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: TIme Conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519019#M146141</link>
      <description>&lt;P&gt;No i didnt get anything.&lt;BR /&gt;&lt;BR /&gt;raw time field - time format which i get in the event&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;activityDateTIme&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="krvamsireddy_0-1599812918849.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10775i8660FAD553BB448E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="krvamsireddy_0-1599812918849.png" alt="krvamsireddy_0-1599812918849.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519019#M146141</guid>
      <dc:creator>krvamsireddy</dc:creator>
      <dc:date>2020-09-11T08:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: TIme Conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519021#M146142</link>
      <description>&lt;P&gt;Looks like you need to parse the activityDateTime with strptime and then format that with strftime&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;eval time = strptime(strptime(activityDateTime, "%Y-%m-%dT%H:%M:%S.%Q"),"%Y-%m-%d %H:%M:%S")&lt;/LI-CODE&gt;&lt;P&gt;Or you could just parse the activityDateTime string into an epoch time and the use fieldformat on the time field for display purposes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:41:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519021#M146142</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-11T08:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: TIme Conversion</title>
      <link>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519024#M146143</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226137"&gt;@krvamsireddy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check updated answer.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 08:39:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/TIme-Conversion/m-p/519024#M146143</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-11T08:39:21Z</dc:date>
    </item>
  </channel>
</rss>

