<?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 to change the time  field value /date(1548574937484) to human readable format ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619513#M106816</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;eval WhenOccurred="/date(1548574937484)"&lt;/PRE&gt;&lt;P&gt;What i have to mention in the&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval&amp;nbsp; WhenOccurred="/date (&amp;nbsp; &amp;nbsp;) "&amp;nbsp; &amp;nbsp;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Default it is taking 1548574937484 for all&amp;nbsp; values&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.....&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 17:06:41 GMT</pubDate>
    <dc:creator>balu1211</dc:creator>
    <dc:date>2022-11-03T17:06:41Z</dc:date>
    <item>
      <title>How to change the time  field value /date(1548574937484) to human readable format ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619443#M106805</link>
      <description />
      <pubDate>Thu, 03 Nov 2022 11:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619443#M106805</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-11-03T11:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the time  field value /date(1548574937484) to human readable format ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619446#M106807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250934"&gt;@balu1211&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to use the strftime option in the eval command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/DateandTimeFunctions#strftime.28X.2CY.29" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/DateandTimeFunctions#strftime.28X.2CY.29&lt;/A&gt;), something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| eval date=strftime(date,"%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>Thu, 03 Nov 2022 12:09:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619446#M106807</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-03T12:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the time  field value /date(1548574937484) to human readable format ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619470#M106810</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;My usecase is like want to convert the WhenOccurred field format to readable format.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_20221103_201843.jpg" style="width: 1482px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22315i1EA10E590F5FFDD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_20221103_201843.jpg" alt="IMG_20221103_201843.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619470#M106810</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-11-03T14:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the time  field value /date(1548574937484) to human readable format ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619472#M106811</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250934"&gt;@balu1211&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you need two steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;extract the date in epochtime format&lt;/LI&gt;&lt;LI&gt;convert date from epochtime to Human Readable.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval WhenOccurred="/date(1548574937484)"
| rex field=WhenOccurred "(?&amp;lt;date_epoch&amp;gt;\d+)"
| eval date=strftime(date_epoch/1000,"%Y-%m-%d %H:%M:%S")
| table date_epoch date&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 14:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619472#M106811</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-03T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the time  field value /date(1548574937484) to human readable format ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619513#M106816</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;eval WhenOccurred="/date(1548574937484)"&lt;/PRE&gt;&lt;P&gt;What i have to mention in the&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval&amp;nbsp; WhenOccurred="/date (&amp;nbsp; &amp;nbsp;) "&amp;nbsp; &amp;nbsp;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Default it is taking 1548574937484 for all&amp;nbsp; values&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.....&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 17:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619513#M106816</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2022-11-03T17:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the time  field value /date(1548574937484) to human readable format ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619531#M106819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250934"&gt;@balu1211&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;first two rows are only for my test, your search is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| rex field=WhenOccurred "(?&amp;lt;date_epoch&amp;gt;\d+)"
| eval date=strftime(date_epoch/1000,"%Y-%m-%d %H:%M:%S")
| table date_epoch date&lt;/LI-CODE&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 18:37:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-the-time-field-value-date-1548574937484-to-human/m-p/619531#M106819</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-03T18:37:29Z</dc:date>
    </item>
  </channel>
</rss>

