<?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: multiple splunk search queries in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534295#M8664</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229941"&gt;@appusplunk14&lt;/a&gt;&amp;nbsp;What's&amp;nbsp;&lt;SPAN&gt;peakTime?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;untable&lt;/STRONG&gt; is need for second &lt;STRONG&gt;timechart&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2020 02:26:04 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-12-29T02:26:04Z</dc:date>
    <item>
      <title>multiple splunk search queries</title>
      <link>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534274#M8661</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;i would like to generate TPS based on two different search criteria but both has to run single report and should be populate both TPS values in single report.&lt;/P&gt;&lt;P&gt;Query 1:&lt;/P&gt;&lt;P&gt;index=abc "String 1"&lt;BR /&gt;| bin _time span=1s&lt;BR /&gt;| chart count as TPS by _time&lt;BR /&gt;| timechart max(TPS) as peakTPS eval(round(avg(TPS),2)) as avgTPS span=1h&lt;/P&gt;&lt;P&gt;Query 2:&lt;/P&gt;&lt;P&gt;index=abc "String1" OR "String 2"&lt;BR /&gt;| bin _time span=1s&lt;BR /&gt;| chart count as TPS by _time&lt;BR /&gt;| timechart max(TPS) as peakTPS eval(round(avg(TPS),2)) as avgTPS span=1h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here query 1 finds TPS and Peak TPS based on one particular string and query 2 find TPS , Peak TPS based on string which i used on query 1 and another string on top of it. Now i would like to get merge both of then in single query so that one single report is enough for providing metrics&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 21:08:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534274#M8661</guid>
      <dc:creator>appusplunk14</dc:creator>
      <dc:date>2020-12-28T21:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: multiple splunk search queries</title>
      <link>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534290#M8662</link>
      <description>&lt;P&gt;sample:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal "splunkd" OR "sourcetype" 
| eval matches=if(searchmatch("splunkd"),"splunkd","sourcetype")
| bin _time span=1s
| chart count as TPS by _time matches
| untable _time matches TPS
| timechart max(TPS) as peakTPS eval(round(avg(TPS),2)) as avgTPS span=1h by matches&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Dec 2020 00:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534290#M8662</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-29T00:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: multiple splunk search queries</title>
      <link>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534294#M8663</link>
      <description>&lt;P&gt;thank you , its working&amp;nbsp; good but i would like to include peakTime for both different search criteria , how do i do that? and what exactly untable means ? why are we using untable in this requirement?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 02:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534294#M8663</guid>
      <dc:creator>appusplunk14</dc:creator>
      <dc:date>2020-12-29T02:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: multiple splunk search queries</title>
      <link>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534295#M8664</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229941"&gt;@appusplunk14&lt;/a&gt;&amp;nbsp;What's&amp;nbsp;&lt;SPAN&gt;peakTime?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;untable&lt;/STRONG&gt; is need for second &lt;STRONG&gt;timechart&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 02:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534295#M8664</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-29T02:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: multiple splunk search queries</title>
      <link>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534373#M8665</link>
      <description>&lt;P&gt;consider if i see peak TPS at 08:00 AM MST then i would like to print time stamp for that duration.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 15:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534373#M8665</guid>
      <dc:creator>appusplunk14</dc:creator>
      <dc:date>2020-12-29T15:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: multiple splunk search queries</title>
      <link>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534394#M8666</link>
      <description>&lt;P&gt;Your first query didn't give us such a number, did it?&lt;BR /&gt;I can't create something out of thin air.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 21:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534394#M8666</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-29T21:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: multiple splunk search queries</title>
      <link>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534581#M8668</link>
      <description>&lt;P&gt;given query is displaying data like below:&lt;/P&gt;&lt;P&gt;2020-12-31 10:00 108.77 56.91 1835 143&lt;BR /&gt;2020-12-31 11:00 109.00 54.49 2167 119&lt;BR /&gt;2020-12-31 12:00 110.47 56.49 1823 131&lt;/P&gt;&lt;P&gt;as i said we want to display time during which we had high number of events in that hour.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 17:32:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534581#M8668</guid>
      <dc:creator>appusplunk14</dc:creator>
      <dc:date>2020-12-31T17:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: multiple splunk search queries</title>
      <link>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534589#M8669</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=_internal "splunkd" OR "sourcetype" 
| eval matches=if(searchmatch("splunkd"),"splunkd","sourcetype")
| bin _time span=1s
| chart count as TPS by _time matches
| untable _time matches TPS
| timechart max(TPS) as peakTPS eval(round(avg(TPS),2)) as avgTPS span=1h by matches
| untable _time tps value
| eventstats max(value) as max_TPS by tps
| eval high_time=if(max_TPS==value,tps,NULL)
| xyseries _time tps value high_time
| foreach high* [ eval high_time=mvappend(high_time,'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;')]
| rename "value: *" as *
| fields - high_time:*
| table _time avg* peak* high_time&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 31 Dec 2020 22:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/multiple-splunk-search-queries/m-p/534589#M8669</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-31T22:46:29Z</dc:date>
    </item>
  </channel>
</rss>

