<?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: Help searching dataset with a date field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-searching-dataset-with-a-date-field/m-p/576384#M200877</link>
    <description>&lt;P&gt;Thanks. Had I been wrtiting this on my computer I'd surely check the timespecs. But in the morning I usually answer on my tablet while walking the dog &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Nov 2021 07:05:28 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-11-26T07:05:28Z</dc:date>
    <item>
      <title>Help searching dataset with a date field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-searching-dataset-with-a-date-field/m-p/576371#M200873</link>
      <description>&lt;P&gt;Hi I'm looking to search a dataset to returns entries from yesterday's date based off a date field which has been converted as such (from another job):&amp;nbsp; | eval event_time = now() | convert ctime(event_time)&amp;nbsp;&lt;/P&gt;&lt;P&gt;The value is stored as&amp;nbsp;11/24/2021 22:28&lt;/P&gt;&lt;P&gt;Please assist how to search and return this value using a yesterday variable?&lt;/P&gt;&lt;P&gt;I hope that makes sense, forgive me I'm still learning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To illustrate,&amp;nbsp; manually entering eventDate="11/24" works, but not sure how to get a 'yesterday' to work with the dataset.&lt;/P&gt;&lt;P&gt;| inputlookup thisDataset.csv | search eventDate="11/24*"&lt;BR /&gt;| sort Brand, eventDate&lt;BR /&gt;| iplocation clientip&lt;BR /&gt;| table _time Brand clientip City Region count eventDate&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 03:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-searching-dataset-with-a-date-field/m-p/576371#M200873</guid>
      <dc:creator>solaced</dc:creator>
      <dc:date>2021-11-26T03:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help searching dataset with a date field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-searching-dataset-with-a-date-field/m-p/576374#M200874</link>
      <description>&lt;P&gt;In such case it makes sense to use a subquery. For example:&lt;/P&gt;&lt;PRE&gt;| inoutlookup your.csv | search &lt;BR /&gt; [ | makeresults &lt;BR /&gt;   | eval d=now()-86400&lt;BR /&gt;   | eval eventDate=strftime("%i %never %remember %these",d)&lt;BR /&gt;   | fields eventDate ]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 05:08:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-searching-dataset-with-a-date-field/m-p/576374#M200874</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-26T05:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help searching dataset with a date field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-searching-dataset-with-a-date-field/m-p/576383#M200876</link>
      <description>&lt;P&gt;Here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval eventDate=strftime(d, "%d/%m/%Y")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If needed you can concatenate * to end of the string.&lt;/P&gt;&lt;P&gt;And bookmark to that page&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Commontimeformatvariables&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another link to commands&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/ListOfSearchCommands" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/ListOfSearchCommands&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 06:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-searching-dataset-with-a-date-field/m-p/576383#M200876</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-11-26T06:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help searching dataset with a date field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-searching-dataset-with-a-date-field/m-p/576384#M200877</link>
      <description>&lt;P&gt;Thanks. Had I been wrtiting this on my computer I'd surely check the timespecs. But in the morning I usually answer on my tablet while walking the dog &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 07:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-searching-dataset-with-a-date-field/m-p/576384#M200877</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-26T07:05:28Z</dc:date>
    </item>
  </channel>
</rss>

