<?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 filter a record among multiple events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538259#M152136</link>
    <description>&lt;P&gt;Thanks for your answer, but it still doesn't work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there ant ways to convert the table to&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;appname&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;row1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;row2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;app1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;10&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;app2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;23&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Then I can compare the "row1 &amp;lt; row2".&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 10:27:39 GMT</pubDate>
    <dc:creator>febbi</dc:creator>
    <dc:date>2021-02-02T10:27:39Z</dc:date>
    <item>
      <title>How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538034#M152093</link>
      <description>&lt;P&gt;I have a table like in splunk this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;appname&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;value&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;time&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;app1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;10&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2020-12-30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;app1&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;12&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2020-12-31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;app2&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;23&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2020-12-30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;app2&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;20&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;2020-12-31&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to filter the records that the value is increasing while the time. In this case, we can only find&amp;nbsp;&lt;/P&gt;&lt;P&gt;(app1, 12 2020-12-31)&lt;/P&gt;&lt;P&gt;How could I write the splunk sql to implement this?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 06:58:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538034#M152093</guid>
      <dc:creator>febbi</dc:creator>
      <dc:date>2021-02-01T06:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538041#M152094</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231070"&gt;@febbi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort time
| delta value as value_diff
| where value_diff &amp;gt; 0&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Feb 2021 07:37:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538041#M152094</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-01T07:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538043#M152095</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=_internal 
| rename sourcetype as app 
| timechart count span=5m by app partial=f limit=0 
| untable _time,app,count 
| sort app,_time,count 
| streamstats count as counter by app
| eventstats count as total by app 
| streamstats sum(count) as prevCount by app window=1 current=f global=f 
| eval delta=count-prevCount 
| where counter=total AND delta&amp;gt;0&lt;/LI-CODE&gt;&lt;P&gt;How about this?&amp;nbsp; Lines 1-5 are to create some test data.&amp;nbsp; The rest is the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 07:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538043#M152095</guid>
      <dc:creator>tread_splunk</dc:creator>
      <dc:date>2021-02-01T07:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538048#M152096</link>
      <description>&lt;P&gt;I've used&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats sum(count) as prevCount by app window=1 current=f global=f &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...instead of delta because I've assumed&amp;nbsp; you want / need the "by app" clause.&lt;/P&gt;&lt;P&gt;I've also assumed you only want to know when the &lt;EM&gt;most recent&lt;/EM&gt; event (per app) has a larger value than the previous event&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 08:23:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538048#M152096</guid>
      <dc:creator>tread_splunk</dc:creator>
      <dc:date>2021-02-01T08:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538255#M152135</link>
      <description>&lt;P&gt;Thanks for your answer, but it still doesn't work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there ant ways to convert the table to&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;appname&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;row1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;row2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;app1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;10&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;app2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;23&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Then I can compare the "row1 &amp;lt; row2".&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 10:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538255#M152135</guid>
      <dc:creator>febbi</dc:creator>
      <dc:date>2021-02-02T10:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538259#M152136</link>
      <description>&lt;P&gt;Thanks for your answer, but it still doesn't work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there ant ways to convert the table to&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;appname&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;row1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;row2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;app1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;10&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;app2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;23&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Then I can compare the "row1 &amp;lt; row2".&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 10:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538259#M152136</guid>
      <dc:creator>febbi</dc:creator>
      <dc:date>2021-02-02T10:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538273#M152137</link>
      <description>&lt;P&gt;Will each app (app1, app2 etc)&amp;nbsp; only ever have 2 values?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538273#M152137</guid>
      <dc:creator>tread_splunk</dc:creator>
      <dc:date>2021-02-02T12:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538275#M152138</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=_internal 
| rename sourcetype as app 
| timechart count span=5m by app partial=f limit=0 
| untable _time,app,count 
| sort app, _time 
| streamstats count as counter by app 
| eventstats count as total by app 
| where counter=1 OR counter=total 
| table app count _time 
| rename count as value 
| streamstats count by app 
| eval count="Row ".count 
| xyseries app count value&lt;/LI-CODE&gt;&lt;P&gt;Assuming you only have 2 rows per app, and you already have the data as per your table, then you just need the last 3 lines in the above.&amp;nbsp; Everything above that is to generate some test data in the same format as your table.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 12:43:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538275#M152138</guid>
      <dc:creator>tread_splunk</dc:creator>
      <dc:date>2021-02-02T12:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538281#M152140</link>
      <description>&lt;P&gt;Each app may have several values, we need to convert the values to different columns according to the same app.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 13:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538281#M152140</guid>
      <dc:creator>febbi</dc:creator>
      <dc:date>2021-02-02T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538283#M152141</link>
      <description>&lt;P&gt;No problem.&amp;nbsp; The solution I posted works for multiple rows per app.&lt;/P&gt;&lt;P&gt;Just add...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats count by app
| eval count="Row ".count
| xyseries app count value&lt;/LI-CODE&gt;&lt;P&gt;Definitely worth getting to grips with xyseries and untable commands.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 13:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538283#M152141</guid>
      <dc:creator>tread_splunk</dc:creator>
      <dc:date>2021-02-02T13:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter a record among multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538285#M152142</link>
      <description>&lt;P&gt;It works for me!, Thanks very much!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 13:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-a-record-among-multiple-events/m-p/538285#M152142</guid>
      <dc:creator>febbi</dc:creator>
      <dc:date>2021-02-02T13:39:00Z</dc:date>
    </item>
  </channel>
</rss>

