<?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: Date in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Date/m-p/554871#M91920</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;there is field value in events like every day there are new events and some of them is updating from past few days so i just wanted the new events that came in yesterday. So i want to compare a field value with yesterday&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jun 2021 09:47:01 GMT</pubDate>
    <dc:creator>Khuzair81</dc:creator>
    <dc:date>2021-06-08T09:47:01Z</dc:date>
    <item>
      <title>Date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date/m-p/554867#M91918</link>
      <description>&lt;P&gt;I want to get the data only from yesterday Date is there anyway to write it in Query&lt;/P&gt;&lt;P&gt;Can i use&amp;nbsp; | where Date=-1d@d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying | eval today=strftime(now(), "%d")&amp;nbsp; &amp;nbsp;| where Date=Today-1&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date/m-p/554867#M91918</guid>
      <dc:creator>Khuzair81</dc:creator>
      <dc:date>2021-06-08T09:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date/m-p/554868#M91919</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225651"&gt;@Khuzair81&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to take only the yesterday events, you have to add to your main search the time variables earliest and latest, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-d@d latest=@d
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:30:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date/m-p/554868#M91919</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-06-08T09:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date/m-p/554871#M91920</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;there is field value in events like every day there are new events and some of them is updating from past few days so i just wanted the new events that came in yesterday. So i want to compare a field value with yesterday&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date/m-p/554871#M91920</guid>
      <dc:creator>Khuzair81</dc:creator>
      <dc:date>2021-06-08T09:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Date/m-p/554873#M91921</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225651"&gt;@Khuzair81&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case you can use eval:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval yesterday_start=relative_time(now(),"-1d@d"), yesterday_end=yesterday_start+86400&lt;/LI-CODE&gt;&lt;P&gt;in this way you have the time borders of yesterday (in epochtime) and you can transform your Date in epochtime and filter your events.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 09:52:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Date/m-p/554873#M91921</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-06-08T09:52:25Z</dc:date>
    </item>
  </channel>
</rss>

