<?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 Time coversion not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460581#M191342</link>
    <description>&lt;P&gt;index=asg Process_name=WLR_22-15_Rating earliest =-5m |  convert timeformat="%d-%M-%Y-%H:%M:%S" mktime(start_dtm) mktime(end_dtm) | eval duration=end_time-start_time | table duration&lt;/P&gt;

&lt;P&gt;Data&lt;BR /&gt;
15-OCT-2019-11:25:02,Process_name=WLR_22-15_Rating,start_dtm=14-OCT-2019-22:15:40,end_dtm=15-OCT-2019-00:47:36,errors=10503,work_done=651649&lt;/P&gt;

&lt;P&gt;Not sure why the above is failing any help would be grateful thanks &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:37:20 GMT</pubDate>
    <dc:creator>nwoolley</dc:creator>
    <dc:date>2020-09-30T02:37:20Z</dc:date>
    <item>
      <title>Time coversion not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460581#M191342</link>
      <description>&lt;P&gt;index=asg Process_name=WLR_22-15_Rating earliest =-5m |  convert timeformat="%d-%M-%Y-%H:%M:%S" mktime(start_dtm) mktime(end_dtm) | eval duration=end_time-start_time | table duration&lt;/P&gt;

&lt;P&gt;Data&lt;BR /&gt;
15-OCT-2019-11:25:02,Process_name=WLR_22-15_Rating,start_dtm=14-OCT-2019-22:15:40,end_dtm=15-OCT-2019-00:47:36,errors=10503,work_done=651649&lt;/P&gt;

&lt;P&gt;Not sure why the above is failing any help would be grateful thanks &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460581#M191342</guid>
      <dc:creator>nwoolley</dc:creator>
      <dc:date>2020-09-30T02:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Time coversion not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460582#M191343</link>
      <description>&lt;P&gt;@nwoolley &lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=asg Process_name=WLR_22-15_Rating earliest =-5m 
| eval start_time=strptime(start_dtm,"%d-%b-%Y-%H:%M:%S"), end_time=strptime(end_dtm,"%d-%b-%Y-%H:%M:%S") 
| eval duration=end_time-start_time 
| table duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="15-OCT-2019-11:25:02,Process_name=WLR_22-15_Rating,start_dtm=14-OCT-2019-22:15:40,end_dtm=15-OCT-2019-00:47:36,errors=10503,work_done=651649" 
| extract 
| eval start_time=strptime(start_dtm,"%d-%b-%Y-%H:%M:%S"), end_time=strptime(end_dtm,"%d-%b-%Y-%H:%M:%S") | eval duration=end_time-start_time | table duration
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Oct 2019 10:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460582#M191343</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-10-15T10:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time coversion not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460583#M191344</link>
      <description>&lt;P&gt;Perfect answer very quick thank you &lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 10:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460583#M191344</guid>
      <dc:creator>nwoolley</dc:creator>
      <dc:date>2019-10-15T10:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Time coversion not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460584#M191345</link>
      <description>&lt;P&gt;Perfect answer very quick thank you &lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 10:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460584#M191345</guid>
      <dc:creator>nwoolley</dc:creator>
      <dc:date>2019-10-15T10:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Time coversion not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460585#M191346</link>
      <description>&lt;P&gt;Great @nwoolley&lt;/P&gt;

&lt;P&gt;Please upvote and accept this answer to close this question.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 10:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-coversion-not-working/m-p/460585#M191346</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-10-15T10:53:18Z</dc:date>
    </item>
  </channel>
</rss>

