<?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 Field calculations help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146306#M40866</link>
    <description>&lt;P&gt;ah correct. perfect that works well. Thanks for your quick help. Appreciate it !&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2014 19:07:19 GMT</pubDate>
    <dc:creator>saurabhkunte</dc:creator>
    <dc:date>2014-04-29T19:07:19Z</dc:date>
    <item>
      <title>Date Field calculations help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146302#M40862</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;
I am hoping one of you can help me out with the following:&lt;BR /&gt;
I have a Powershell script which is displaying the output of all Active Directory Server objects and indexing to Splunk which works well. The output is getting indexed in the following format:&lt;BR /&gt;
output :&lt;/P&gt;

&lt;P&gt;2014/04/29 11:46:39  ServerName="am-dc02" ADSPath="CN=am-dc02,OU=Domain Controllers,DC=ads,DC=contoso,DC=com" Created="04/28/2014 12:34:36"&lt;BR /&gt;
2014/04/29 11:46:39  ServerName="am-dc01" ADSPath="CN=am-dc01,OU=Domain Controllers,DC=ads,DC=contoso,DC=com" Created="04/28/2014 12:34:01"&lt;/P&gt;

&lt;P&gt;this script runs everyday and indexes the ad export list to splunk.&lt;/P&gt;

&lt;P&gt;What i want to achieve is to have a report setup to list all new AD objects that got created Current Date -1 day, Current Date - 7 days. i can use the " Created" date field to calculate this. However when I try to convert this field to epoch time and then compare it against timenow, I do not get any results. Can any body provide me with the correct query on how to achieve these reports ?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;BR /&gt;
S&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:31:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146302#M40862</guid>
      <dc:creator>saurabhkunte</dc:creator>
      <dc:date>2014-04-29T18:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field calculations help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146303#M40863</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | eval report_cutoff=relative_time(now(),"-1d") | convert timeformat="%m/%d/%Y %H:%M:%S" mktime(Created) | where Created &amp;gt; report_cutoff
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:47:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146303#M40863</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-29T18:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field calculations help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146304#M40864</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;BR /&gt;
This returns no results and I know for sure i had the above 2 AD objects created yesterday and listed under Created Field. Any other ideas please ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 18:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146304#M40864</guid>
      <dc:creator>saurabhkunte</dc:creator>
      <dc:date>2014-04-29T18:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field calculations help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146305#M40865</link>
      <description>&lt;P&gt;-1d goes back exactly 24 hrs back (e.g if its 4/29 2 PM now, then it goes back to 4/28 2 PM). Change it to -1d@d to see AD groups created since Yesterday Midnight (4/28 12 AM)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 19:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146305#M40865</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-29T19:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date Field calculations help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146306#M40866</link>
      <description>&lt;P&gt;ah correct. perfect that works well. Thanks for your quick help. Appreciate it !&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 19:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Field-calculations-help/m-p/146306#M40866</guid>
      <dc:creator>saurabhkunte</dc:creator>
      <dc:date>2014-04-29T19:07:19Z</dc:date>
    </item>
  </channel>
</rss>

