<?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 Search for variable Link value which changed and when it changed in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493427#M140169</link>
    <description>&lt;P&gt;Date="8 May 2020" Link="X" Status="UP"&lt;BR /&gt;Date="9 May 2020" Link="Y" Status="DOWN"&lt;BR /&gt;Date="10 May 2020" Link="X" Status="UP"&lt;BR /&gt;Date="11 May 2020" Link="X" Status="DOWN"&lt;BR /&gt;Date="12 May 2020" Link="Y" Status="UP"&lt;/P&gt;
&lt;P&gt;I am getting logs on daily basis in above format and data . I am looking to find variable Link whose Status went down but never came up and on which date it went DOWN . Can someone please help with same , thanks&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jun 2020 00:43:35 GMT</pubDate>
    <dc:creator>atulitm</dc:creator>
    <dc:date>2020-06-06T00:43:35Z</dc:date>
    <item>
      <title>Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493427#M140169</link>
      <description>&lt;P&gt;Date="8 May 2020" Link="X" Status="UP"&lt;BR /&gt;Date="9 May 2020" Link="Y" Status="DOWN"&lt;BR /&gt;Date="10 May 2020" Link="X" Status="UP"&lt;BR /&gt;Date="11 May 2020" Link="X" Status="DOWN"&lt;BR /&gt;Date="12 May 2020" Link="Y" Status="UP"&lt;/P&gt;
&lt;P&gt;I am getting logs on daily basis in above format and data . I am looking to find variable Link whose Status went down but never came up and on which date it went DOWN . Can someone please help with same , thanks&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 00:43:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493427#M140169</guid>
      <dc:creator>atulitm</dc:creator>
      <dc:date>2020-06-06T00:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493428#M140170</link>
      <description>&lt;P&gt;What's &lt;CODE&gt;variable Link&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 13:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493428#M140170</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-11T13:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493429#M140171</link>
      <description>&lt;P&gt;This may help.  It takes the most recent Status value and throws away anything not "DOWN".&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo
| stats latest(Date) as Date, latest(Status) as Status by Link
| where Status="DOWN"
| table Date Status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2020 14:03:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493429#M140171</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-05-11T14:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493430#M140172</link>
      <description>&lt;P&gt;Actually this i already tried this but this shows last logs which mean which is down but not up but it doesnt show when it went down . For example it below case , Link X went down on 11 May but log on 13 May shows its still down . &lt;/P&gt;

&lt;P&gt;Date="9 May 2020" Link="Y" Status="DOWN"&lt;BR /&gt;
Date="10 May 2020" Link="X" Status="UP"&lt;BR /&gt;
Date="11 May 2020" Link="X" Status="DOWN"&lt;BR /&gt;
Date="12 May 2020" Link="Y" Status="UP"&lt;BR /&gt;
Date="13 May 2020" Link="X" Status="DOWN"&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493430#M140172</guid>
      <dc:creator>atulitm</dc:creator>
      <dc:date>2020-05-11T14:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493431#M140173</link>
      <description>&lt;P&gt;Date="9 May 2020" Link="Y" Status="DOWN"&lt;BR /&gt;
Date="10 May 2020" Link="X" Status="UP"&lt;BR /&gt;
Date="11 May 2020" Link="X" Status="DOWN"&lt;BR /&gt;
Date="12 May 2020" Link="Y" Status="UP"&lt;BR /&gt;
Date="13 May 2020" Link="X" Status="DOWN"&lt;/P&gt;

&lt;P&gt;Variable Link is shows in Logs above with below requirement :&lt;BR /&gt;
For example variable Link "X" went down on 10th May but log on 13th May shows its still down .&lt;BR /&gt;
and query should not show Link Y as output because it went down on 9th May but last logs shows its up now as in last log  . Hope this clarifies what i am looking for thanks .&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493431#M140173</guid>
      <dc:creator>atulitm</dc:creator>
      <dc:date>2020-05-11T14:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493432#M140174</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|makeresults
| eval _raw="Date=\"8 May 2020\" Link=\"X\" Status=\"UP\"
Date=\"9 May 2020\" Link=\"Y\" Status=\"DOWN\"
Date=\"10 May 2020\" Link=\"X\" Status=\"UP\"
Date=\"11 May 2020\" Link=\"X\" Status=\"DOWN\"
Date=\"12 May 2020\" Link=\"Y\" Status=\"UP\"
Date=\"13 May 2020\" Link=\"X\" Status=\"DOWN\""
| multikv noheader=t 
| kv
| table Date Link Status


| eval Date=strptime(Date,"%d %B %Y")
| fieldformat Date=strftime(Date,"%F")
| sort Link Date
| streamstats current=f last(Status) as prev by Link
| streamstats count(eval(Status!=prev)) as changed by Link
| eventstats last(changed) as session by Link
| where changed==session
| stats min(Date) as start max(Date) as end values(Status) as Status by session Link
| where Status="DOWN"
| convert ctime(start) ctime(end) timeformat="%F"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2020 19:13:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493432#M140174</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-11T19:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493433#M140175</link>
      <description>&lt;P&gt;This works as expected with few changes for my other need  . Thank you !! &lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 09:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493433#M140175</guid>
      <dc:creator>atulitm</dc:creator>
      <dc:date>2020-05-12T09:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493434#M140176</link>
      <description>&lt;P&gt;@to4kawa  above query works but i see issue being that streamstats reaches limits as number of logs are more than 10000 so it doesnt work . is there any workaround for same thanks .&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 08:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493434#M140176</guid>
      <dc:creator>atulitm</dc:creator>
      <dc:date>2020-05-18T08:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493435#M140177</link>
      <description>&lt;P&gt;I see , you do &lt;CODE&gt;unaccepted&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;I don't know your problem, I only answer your question.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 09:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493435#M140177</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-18T09:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search for variable Link value which changed and when it changed</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493436#M140178</link>
      <description>&lt;P&gt;I unaccepted because it doesn't resolve the issue completely but thats true it resolve the original question . i will raise another question for corresponding issue then . No problem , accepted it solution for original query .&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 09:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-variable-Link-value-which-changed-and-when-it-changed/m-p/493436#M140178</guid>
      <dc:creator>atulitm</dc:creator>
      <dc:date>2020-05-18T09:09:52Z</dc:date>
    </item>
  </channel>
</rss>

