<?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 Can you help me with my string to date query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-string-to-date-query/m-p/430367#M123060</link>
    <description>&lt;P&gt;Hi Community ,&lt;/P&gt;

&lt;P&gt;I have a question about a conversion beetwen string to date.&lt;/P&gt;

&lt;P&gt;I have some extract in CSV from my google platform like this : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; host=DSCRIPT02 sourcetype=csv:google | eval lastSync-mod=substr(lastSync,1,10)  | search "lastSync-mod"!=Never AND  "lastSync-mod"!=LastSync | table  resourceId email lastSync-mod | sort lastSync-mod | head 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the last 20 mobiles, but i want the the list of mobiles that was not sync until 30days. The problem is the field last-Sync-Mod is not recognized as a date format &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5932iDA4C81A90CBB88EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Can you help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ?&lt;/P&gt;

&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Fri, 19 Oct 2018 06:51:49 GMT</pubDate>
    <dc:creator>serviceinfrastr</dc:creator>
    <dc:date>2018-10-19T06:51:49Z</dc:date>
    <item>
      <title>Can you help me with my string to date query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-string-to-date-query/m-p/430367#M123060</link>
      <description>&lt;P&gt;Hi Community ,&lt;/P&gt;

&lt;P&gt;I have a question about a conversion beetwen string to date.&lt;/P&gt;

&lt;P&gt;I have some extract in CSV from my google platform like this : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; host=DSCRIPT02 sourcetype=csv:google | eval lastSync-mod=substr(lastSync,1,10)  | search "lastSync-mod"!=Never AND  "lastSync-mod"!=LastSync | table  resourceId email lastSync-mod | sort lastSync-mod | head 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the last 20 mobiles, but i want the the list of mobiles that was not sync until 30days. The problem is the field last-Sync-Mod is not recognized as a date format &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5932iDA4C81A90CBB88EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Can you help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ?&lt;/P&gt;

&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 06:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-string-to-date-query/m-p/430367#M123060</guid>
      <dc:creator>serviceinfrastr</dc:creator>
      <dc:date>2018-10-19T06:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with my string to date query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-string-to-date-query/m-p/430368#M123061</link>
      <description>&lt;P&gt;@serviceinfrastructure,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Your search "|eval last_sync_time=strptime(lastSync-mod,"%Y-%m-%d")|eval diff=(now()-last_sync_time)/86400|where diff&amp;gt;30
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-with-my-string-to-date-query/m-p/430368#M123061</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-10-19T14:52:29Z</dc:date>
    </item>
  </channel>
</rss>

