<?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't get results using _time in my search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-results-using-time-in-my-search/m-p/232866#M69091</link>
    <description>&lt;P&gt;I performed this search&lt;/P&gt;

&lt;P&gt;index=* source="WinEventLog:System" EventCode=3 host=jj1 | table host, _time, message&lt;/P&gt;

&lt;P&gt;and get the following results:&lt;/P&gt;

&lt;P&gt;jj1            2016-05-02 18:27:04         Service started. &lt;BR /&gt;
jj1            2016-05-02 18:23:55         VMCI: Using capabilities (0xc). &lt;/P&gt;

&lt;P&gt;I want to narrow this down with the following search&lt;/P&gt;

&lt;P&gt;index=* source="WinEventLog:System" EventCode=3 host=jj1 _time&amp;gt;="2016-05-02 18:27:04" |table host, _time, Message&lt;/P&gt;

&lt;P&gt;I receive no results. Please advise on how to make this work.&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2016 00:29:07 GMT</pubDate>
    <dc:creator>TheJagoff</dc:creator>
    <dc:date>2016-05-06T00:29:07Z</dc:date>
    <item>
      <title>Can't get results using _time in my search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-results-using-time-in-my-search/m-p/232866#M69091</link>
      <description>&lt;P&gt;I performed this search&lt;/P&gt;

&lt;P&gt;index=* source="WinEventLog:System" EventCode=3 host=jj1 | table host, _time, message&lt;/P&gt;

&lt;P&gt;and get the following results:&lt;/P&gt;

&lt;P&gt;jj1            2016-05-02 18:27:04         Service started. &lt;BR /&gt;
jj1            2016-05-02 18:23:55         VMCI: Using capabilities (0xc). &lt;/P&gt;

&lt;P&gt;I want to narrow this down with the following search&lt;/P&gt;

&lt;P&gt;index=* source="WinEventLog:System" EventCode=3 host=jj1 _time&amp;gt;="2016-05-02 18:27:04" |table host, _time, Message&lt;/P&gt;

&lt;P&gt;I receive no results. Please advise on how to make this work.&lt;/P&gt;

&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 00:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-results-using-time-in-my-search/m-p/232866#M69091</guid>
      <dc:creator>TheJagoff</dc:creator>
      <dc:date>2016-05-06T00:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get results using _time in my search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-results-using-time-in-my-search/m-p/232867#M69092</link>
      <description>&lt;P&gt;&lt;CODE&gt;_time&lt;/CODE&gt; is always in epoch time. Here is some information how you can use time modifiers to filter you data by time. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.6/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.6/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 01:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-results-using-time-in-my-search/m-p/232867#M69092</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-06T01:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get results using _time in my search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-results-using-time-in-my-search/m-p/232868#M69093</link>
      <description>&lt;P&gt;Check out the &lt;CODE&gt;fieldformat&lt;/CODE&gt; command.  Splunk automatically calls this inside every search so that, even though &lt;CODE&gt;_time&lt;/CODE&gt; is actually a &lt;CODE&gt;time_t&lt;/CODE&gt; and an integer, it is displayed to the user in his location-adjusted preference (in most cases, &lt;CODE&gt;en_us&lt;/CODE&gt;).  So your search should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* source="WinEventLog:System" EventCode=3 host=jj1 _time&amp;gt;= [|noop|stats count AS myTime | eval myTime = "2016-05-02 18:27:04" | convert timeformat="%Y-%m-%d %H:%M:%S" mktime(myTime) | return $myTime] |table host _time Message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 May 2016 13:32:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-results-using-time-in-my-search/m-p/232868#M69093</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-06T13:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get results using _time in my search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-get-results-using-time-in-my-search/m-p/232869#M69094</link>
      <description>&lt;P&gt;THANK YOU!!!!!&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 14:10:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-get-results-using-time-in-my-search/m-p/232869#M69094</guid>
      <dc:creator>TheJagoff</dc:creator>
      <dc:date>2016-05-06T14:10:30Z</dc:date>
    </item>
  </channel>
</rss>

