<?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: fix date format to extracted eval field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608986#M105631</link>
    <description>&lt;P&gt;OK The time formats have to match the format being used.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval validateEmailMessagecomplete=if(like(_raw,"%validateEmailMessage()%"), sent_date,"1970-01-01 00:00:00.000") ]
| eval validateEmailMessagecomplete1=strptime(validateEmailMessagecomplete,"%Y-%m-%d %H:%M:%S.%3N")&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 10 Aug 2022 11:43:53 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-08-10T11:43:53Z</dc:date>
    <item>
      <title>How to fix date format to extracted eval field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608965#M105624</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="indnewwrapper" | search rfq_id:
| join [ search index="indnewwrapper" | search rfq_id:
| eval validateEmailMessagecomplete=if(like(_raw,"%validateEmailMessage()%"), sent_date,"1900-01-01 12:00:00.000") ]
| eval validateEmailMessagecomplete1=strftime(strftime(validateEmailMessagecomplete,"%A %B %d %Y %I:%M:%S %p %Z"),"%Y-%m-%d %H:%M:%S")
| table pRFQ_Id,validateEmailMessagecomplete,validateEmailMessagecomplete1&lt;/LI-CODE&gt;
&lt;P&gt;I am finding a string in a search and extracting a validateEmailMessagecomplete date. using like function.&lt;/P&gt;
&lt;P&gt;i am getting desired output but i am not able to change to datetime format validateEmailMessagecomplete1 it shows blank value&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pp3295_0-1660123000436.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20967iB02874EB105DBBFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pp3295_0-1660123000436.png" alt="pp3295_0-1660123000436.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;i searched various post on the forum. but did not found desired solution.&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608965#M105624</guid>
      <dc:creator>pp3295</dc:creator>
      <dc:date>2022-08-10T14:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: fix date format to extracted eval field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608973#M105625</link>
      <description>&lt;P&gt;You are using str&lt;STRONG&gt;f&lt;/STRONG&gt;time twice, you need to use str&lt;STRONG&gt;p&lt;/STRONG&gt;time for the inner function to parse the string into an epoch time before formatting it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval validateEmailMessagecomplete1=strftime(strptime(validateEmailMessagecomplete,"%A %B %d %Y %I:%M:%S %p %Z"),"%Y-%m-%d %H:%M:%S")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Aug 2022 09:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608973#M105625</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-10T09:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: fix date format to extracted eval field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608974#M105626</link>
      <description>&lt;P&gt;checked by your way. still now luck. But thanks for your support.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 10:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608974#M105626</guid>
      <dc:creator>pp3295</dc:creator>
      <dc:date>2022-08-10T10:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: fix date format to extracted eval field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608976#M105627</link>
      <description>&lt;P&gt;Epoch dates run from 1970 not 1900 - try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval validateEmailMessagecomplete=if(like(_raw,"%validateEmailMessage()%"), sent_date,"1970-01-01 00:00:00.000")&lt;/LI-CODE&gt;&lt;P&gt;Having said that, what is it you are trying to achieve with the join command? Perhaps there is another way to approach it&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 10:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608976#M105627</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-10T10:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: fix date format to extracted eval field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608978#M105628</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pp3295_0-1660126678795.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20969i63F70E6B0EE9770F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pp3295_0-1660126678795.png" alt="pp3295_0-1660126678795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;index="indnewwrapper" | search rfq_id:&lt;BR /&gt;| join [ search index="indnewwrapper" | search rfq_id:&lt;BR /&gt;| eval validateEmailMessagecomplete=if(like(_raw,"%validateEmailMessage()%"), sent_date,"1980-01-01 12:00:00.000") ]&lt;BR /&gt;| eval validateEmailMessagecomplete1=strptime(validateEmailMessagecomplete,"%A %B %d %Y %I:%M:%S %p %Z")&lt;BR /&gt;| table pRFQ_Id,validateEmailMessagecomplete,validateEmailMessagecomplete1&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 10:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608978#M105628</guid>
      <dc:creator>pp3295</dc:creator>
      <dc:date>2022-08-10T10:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: fix date format to extracted eval field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608980#M105629</link>
      <description>&lt;P&gt;OK, assuming the sent_date matches the format string you are using, the string you are using if validateEmailMessage doesn't exist in _raw should match this format. Try it this way&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval validateEmailMessagecomplete=if(like(_raw,"%validateEmailMessage()%"), sent_date,"Thursday January 01 1970 01:00:00 AM BST") ]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Aug 2022 10:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608980#M105629</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-10T10:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: fix date format to extracted eval field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608985#M105630</link>
      <description>&lt;P&gt;thanks for your reply. i think problem is&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pp3295_0-1660129519953.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20971i4FC06782BB3D2987/image-size/large?v=v2&amp;amp;px=999" role="button" title="pp3295_0-1660129519953.png" alt="pp3295_0-1660129519953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;when i individually use table sent_date , i found blank rows. because of this solution is not working. can we omit blank rows .&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 11:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608985#M105630</guid>
      <dc:creator>pp3295</dc:creator>
      <dc:date>2022-08-10T11:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: fix date format to extracted eval field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608986#M105631</link>
      <description>&lt;P&gt;OK The time formats have to match the format being used.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval validateEmailMessagecomplete=if(like(_raw,"%validateEmailMessage()%"), sent_date,"1970-01-01 00:00:00.000") ]
| eval validateEmailMessagecomplete1=strptime(validateEmailMessagecomplete,"%Y-%m-%d %H:%M:%S.%3N")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Aug 2022 11:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608986#M105631</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-10T11:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: fix date format to extracted eval field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608990#M105632</link>
      <description>&lt;P&gt;thanks bhai ( bro ), its working. showing values&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pp3295_0-1660132013776.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20972i0540784AEE3D106B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pp3295_0-1660132013776.png" alt="pp3295_0-1660132013776.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am new to splunk, learning from this forum and youtube. do you know any good channels for splunk learning.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 11:48:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608990#M105632</guid>
      <dc:creator>pp3295</dc:creator>
      <dc:date>2022-08-10T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: fix date format to extracted eval field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608992#M105633</link>
      <description>&lt;P&gt;Hard to say what is good - it depends on your learning style - there are tutorials, and courses, there are presentations from .conf and BSides, there are example dashboards and other apps in splunkbase, and then there's just trying stuff out in a sandbox environment just to see what it does.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 11:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-date-format-to-extracted-eval-field/m-p/608992#M105633</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-10T11:58:09Z</dc:date>
    </item>
  </channel>
</rss>

