<?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 How to change Time format in raw data to a readable format? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593209#M103813</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am getting&amp;nbsp; date and time format as "Created_time =&lt;SPAN&gt;1649576166225" in raw log we have to convert. Please help me convert in readable format for all logs. Need to do any changes in input level or anything please help me&lt;/SPAN&gt;&lt;/P&gt;
&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="splunkpri_1-1649578057784.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19016i5D30EAF47AD99ABD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunkpri_1-1649578057784.png" alt="splunkpri_1-1649578057784.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&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="splunkpri_0-1649577907937.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19015iC2B474711D637366/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunkpri_0-1649577907937.png" alt="splunkpri_0-1649577907937.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2022 15:38:27 GMT</pubDate>
    <dc:creator>splunkpri</dc:creator>
    <dc:date>2022-04-11T15:38:27Z</dc:date>
    <item>
      <title>How to change Time format in raw data to a readable format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593209#M103813</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am getting&amp;nbsp; date and time format as "Created_time =&lt;SPAN&gt;1649576166225" in raw log we have to convert. Please help me convert in readable format for all logs. Need to do any changes in input level or anything please help me&lt;/SPAN&gt;&lt;/P&gt;
&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="splunkpri_1-1649578057784.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19016i5D30EAF47AD99ABD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunkpri_1-1649578057784.png" alt="splunkpri_1-1649578057784.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&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="splunkpri_0-1649577907937.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19015iC2B474711D637366/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunkpri_0-1649577907937.png" alt="splunkpri_0-1649577907937.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 15:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593209#M103813</guid>
      <dc:creator>splunkpri</dc:creator>
      <dc:date>2022-04-11T15:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Time format in raw data in human readable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593211#M103814</link>
      <description>&lt;P&gt;Do not "convert" the value. Use fieldformat to display the field in a human-readable format but leave the original field as it is. You can also create a calculated field which would give you another field containing the rendered string value.&lt;/P&gt;&lt;P&gt;But the first and most important thing is - since this sems to be an excerpt from some json data - where is your _time field being extracted from? Is the created_time field the only field in the event or do you have other time-related fields? If so, which of them is most important?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 08:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593211#M103814</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-10T08:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Time format in raw data in human readable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593212#M103815</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243815"&gt;@splunkpri&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;said, the best approach is to leave the timestamp and all the other dates in original format so you can use them as timestamp or to compare dates.&lt;/P&gt;&lt;P&gt;When you need to display ine date you can use the eval command with the strftime function that disaplys a date in the format you prefer, for more infos see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions#Usage_3" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/SearchReference/DateandTimeFunctions#Usage_3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in few words: to dortma your date from epochtime to human readable YYYY-mm-dd HH:MM:SS you could use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval Created_time=strftime(Created_time,"%Y-%m-%d %H:%M:%S")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2022 09:21:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593212#M103815</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-04-10T09:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Time format in raw data in human readable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593263#M103825</link>
      <description />
      <pubDate>Mon, 11 Apr 2022 08:15:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593263#M103825</guid>
      <dc:creator>splunkpri</dc:creator>
      <dc:date>2022-04-11T08:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Time format in raw data in human readable</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593264#M103826</link>
      <description>&lt;P&gt;Yes we do have _time field as well in RAW logs. Customer asked us they want Created_time in human readable format&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 08:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-Time-format-in-raw-data-to-a-readable-format/m-p/593264#M103826</guid>
      <dc:creator>splunkpri</dc:creator>
      <dc:date>2022-04-11T08:16:57Z</dc:date>
    </item>
  </channel>
</rss>

