<?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 a search results in ascending order (time wise). every time its giving in different order..please help me.... in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167682#M47744</link>
    <description>&lt;P&gt;its working perfect... thanks a ton.......&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jan 2015 12:12:39 GMT</pubDate>
    <dc:creator>marees123</dc:creator>
    <dc:date>2015-01-06T12:12:39Z</dc:date>
    <item>
      <title>how to get a search results in ascending order (time wise). every time its giving in different order..please help me....</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167680#M47742</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;*swt* "changed state to" */*/* | rex "(?i) Interface (?P[^,]+)" | rex "(?i)changed state to (?P.+)" | table host, AnInterface, UpDown, _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this is the query im using.. everytime it gives different order.... please help me out....&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 11:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167680#M47742</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-01-06T11:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to get a search results in ascending order (time wise). every time its giving in different order..please help me....</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167681#M47743</link>
      <description>&lt;P&gt;Hi marees123,&lt;/P&gt;

&lt;P&gt;how about 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 host, AnInterface, UpDown, _time | sort +_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&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, _time | reverse
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;*swt* "changed state to" */*/* | rex "(?i) Interface (?P[^,]+)" | rex "(?i)changed state to (?P.+)" | chart values(AnInterface) AS AnInterface values(UpDown) AS UpDown over _time by host
&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>Tue, 06 Jan 2015 11:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167681#M47743</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-01-06T11:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to get a search results in ascending order (time wise). every time its giving in different order..please help me....</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167682#M47744</link>
      <description>&lt;P&gt;its working perfect... thanks a ton.......&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 12:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167682#M47744</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-01-06T12:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to get a search results in ascending order (time wise). every time its giving in different order..please help me....</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167683#M47745</link>
      <description>&lt;P&gt;you're welcome &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2015 12:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167683#M47745</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-01-06T12:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to get a search results in ascending order (time wise). every time its giving in different order..please help me....</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167684#M47746</link>
      <description>&lt;P&gt;Hi Mus,&lt;/P&gt;

&lt;P&gt;I'm using the below query as you suggested,&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, _time | sort -_time | reverse
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could any one please provide the script, so that splunk will send the below logs to netcool. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;data1swt0001    GigabitEthernet1/0/1    down    2015-01-24 23:48:38
data1swt0001    GigabitEthernet1/0/1    down    2015-01-24 23:48:38

data1swt0001    GigabitEthernet1/0/1    up  2015-01-24 23:52:08
data1swt0001    GigabitEthernet1/0/1    up  2015-01-24 23:52:08
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks....&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 07:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-a-search-results-in-ascending-order-time-wise-every/m-p/167684#M47746</guid>
      <dc:creator>marees123</dc:creator>
      <dc:date>2015-01-29T07:00:09Z</dc:date>
    </item>
  </channel>
</rss>

