<?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 convert a time format to a human readable form? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379130#M173100</link>
    <description>&lt;P&gt;Great! &lt;/P&gt;

&lt;P&gt;So I used below:&lt;/P&gt;

&lt;P&gt;index=ABC&lt;BR /&gt;
| stats dc(profile_name) by profile_name, start_date,end_date&lt;BR /&gt;
| eval start_date = strptime(start_date, "%Y-%m-%d %H:%M:%S.%6Q%Z")&lt;BR /&gt;
| eval Start_Time = strftime(start_date, "%B %d, %Y at %H:%M:%S")&lt;BR /&gt;
| table profile_name, Start_Time, end_date&lt;/P&gt;

&lt;P&gt;Result is: February 11,2019 at 02:00:04&lt;/P&gt;

&lt;P&gt;THANK YOU!!!! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 23:12:34 GMT</pubDate>
    <dc:creator>mbasharat</dc:creator>
    <dc:date>2020-09-29T23:12:34Z</dc:date>
    <item>
      <title>Can you help me convert a time format to a human readable form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379126#M173096</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have the below time format, which I want to convert to a human readable form. A few options would be great. &lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-02-11 10:22:57.533328+00
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Feb 2019 23:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379126#M173096</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2019-02-11T23:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me convert a time format to a human readable form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379127#M173097</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval epoch = strptime("2019-02-11 10:22:57.533328+00", "%Y-%m-%d %H:%M:%S.%6Q%Z")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then display like so:  (you can mix and match)&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| eval friendly = strftime(epoch, "%Y-%m-%d")&lt;/CODE&gt;  2017-12-31&lt;BR /&gt;
&lt;CODE&gt;| eval friendly = strftime(epoch, "%d %b&amp;nbsp;%y")&lt;/CODE&gt;  3 Feb 17&lt;BR /&gt;
&lt;CODE&gt;| eval friendly = strftime(epoch, "%d %B&amp;nbsp;%y")&lt;/CODE&gt;  3 February 2017&lt;BR /&gt;
&lt;CODE&gt;| eval friendly = strftime(epoch, "%I:%M:%S %p")&lt;/CODE&gt;  5:45:33 pm&lt;BR /&gt;
&lt;CODE&gt;| eval friendly = strftime(epoch, "%H:%M:%S")&lt;/CODE&gt; 17:45:33&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 23:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379127#M173097</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-11T23:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me convert a time format to a human readable form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379128#M173098</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;

&lt;P&gt;Here is my sample query and it is not working. The start_date and end_date are in above format and I need them to be readable. Thanks in advance.&lt;/P&gt;

&lt;P&gt;index=ABC&lt;BR /&gt;
| stats dc(profile_name) by profile_name, start_date,end_date&lt;BR /&gt;
| eval start_date = strptime("start_date", "%Y-%m-%d %H:%M:%S.%6Q%Z")&lt;BR /&gt;
| table profile_name, start_date, end_date&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379128#M173098</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2020-09-29T23:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me convert a time format to a human readable form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379129#M173099</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ABC
| stats dc(profile_name) by profile_name, start_date,end_date
| eval start_date = strptime(start_date, "%Y-%m-%d %H:%M:%S.%6Q%Z")
| table profile_name, start_date, end_date
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Feb 2019 23:49:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379129#M173099</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-11T23:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me convert a time format to a human readable form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379130#M173100</link>
      <description>&lt;P&gt;Great! &lt;/P&gt;

&lt;P&gt;So I used below:&lt;/P&gt;

&lt;P&gt;index=ABC&lt;BR /&gt;
| stats dc(profile_name) by profile_name, start_date,end_date&lt;BR /&gt;
| eval start_date = strptime(start_date, "%Y-%m-%d %H:%M:%S.%6Q%Z")&lt;BR /&gt;
| eval Start_Time = strftime(start_date, "%B %d, %Y at %H:%M:%S")&lt;BR /&gt;
| table profile_name, Start_Time, end_date&lt;/P&gt;

&lt;P&gt;Result is: February 11,2019 at 02:00:04&lt;/P&gt;

&lt;P&gt;THANK YOU!!!! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:12:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379130#M173100</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2020-09-29T23:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me convert a time format to a human readable form?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379131#M173101</link>
      <description>&lt;P&gt;good stuff&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 00:02:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-convert-a-time-format-to-a-human-readable-form/m-p/379131#M173101</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-12T00:02:42Z</dc:date>
    </item>
  </channel>
</rss>

