<?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: how to get time stamps in a search result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156747#M44086</link>
    <description>&lt;P&gt;well use the time range picker to apply a time range to your search or use &lt;CODE&gt;head&lt;/CODE&gt; after your search &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Head"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Head&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Dec 2014 08:38:02 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2014-12-15T08:38:02Z</dc:date>
    <item>
      <title>how to get time stamps in a search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156743#M44082</link>
      <description>&lt;P&gt;i have a query which is returning the hostname , interface status (up/down). Would like to get time stamps for this occurrences. What query i need to add at the end of the query,. Please help me out&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*swt* "changed state to" */*/* | rex "(?i) Interface (?P[^,]+)" | rex "(?i)changed state to (?P.+)" | table host, AnInterface, UpDown
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Dec 2014 08:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156743#M44082</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2014-12-11T08:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to get time stamps in a search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156744#M44083</link>
      <description>&lt;P&gt;Hi marees123,&lt;/P&gt;

&lt;P&gt;almost got it, try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*swt* "changed state to" */*/* | rex "(?i) Interface (?P[^,]+)" | rex "(?i)changed state to (?P.+)" | table _time, host, AnInterface, UpDown
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 08:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156744#M44083</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-11T08:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to get time stamps in a search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156745#M44084</link>
      <description>&lt;P&gt;thanks a ton MuS.. It simply worked... thanks again....&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 09:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156745#M44084</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2014-12-11T09:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to get time stamps in a search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156746#M44085</link>
      <description>&lt;P&gt;getting the logs like this... is there any way to filter the recent logs only. please help on this.&lt;BR /&gt;
swt0001 GigabitEthernet2/0/2        down    2014-12-10 08:30:59&lt;BR /&gt;
swt0001 GigabitEthernet1/0/2    down    2014-12-10 08:30:59&lt;BR /&gt;
swt0001 GigabitEthernet2/0/2          down  2014-12-10 08:31:00&lt;BR /&gt;
swt0001 GigabitEthernet1/0/2           down 2014-12-10 08:31:00&lt;BR /&gt;
swt0001 GigabitEthernet2/0/2           up         2014-12-10 08:35:17&lt;BR /&gt;
swt0001 GigabitEthernet1/0/2            up         2014-12-10 08:35:17&lt;BR /&gt;
swt0001 GigabitEthernet2/0/2        up  2014-12-10 08:35:19&lt;BR /&gt;
swt0001 GigabitEthernet1/0/2            up  2014-12-10 08:35:19&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 08:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156746#M44085</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2014-12-15T08:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to get time stamps in a search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156747#M44086</link>
      <description>&lt;P&gt;well use the time range picker to apply a time range to your search or use &lt;CODE&gt;head&lt;/CODE&gt; after your search &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Head"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Head&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 08:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-time-stamps-in-a-search-result/m-p/156747#M44086</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-12-15T08:38:02Z</dc:date>
    </item>
  </channel>
</rss>

