<?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: Splunk queries in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685997#M234072</link>
    <description>&lt;P&gt;Thank you very match fro helping me!&lt;/P&gt;&lt;P&gt;This works now fine!&lt;/P&gt;&lt;P&gt;Have nice day!&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 14:27:30 GMT</pubDate>
    <dc:creator>saidAb</dc:creator>
    <dc:date>2024-04-30T14:27:30Z</dc:date>
    <item>
      <title>Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685967#M234058</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;A query, can calculate http calls, success responses and error response. I need an addition to the&amp;nbsp; query to get how many requests are without response. I mean calls - success_respnses - erros_rsponse = null_responses.&lt;/P&gt;&lt;P&gt;Some good idea bout this? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 12:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685967#M234058</guid>
      <dc:creator>saidAb</dc:creator>
      <dc:date>2024-04-30T12:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685971#M234061</link>
      <description>&lt;P&gt;It depends on your data. Please can you share some sample anonymised represntative events in a code block so we can see what you are dealing with.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685971#M234061</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-30T13:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685973#M234062</link>
      <description>&lt;P&gt;index="xxxx" sourcetype="xxxxx" message.request_path!=*/healthCheck&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | fillnull value=0 backend_time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | stats count(eval('message.direction'="request")) as Calls, count(eval('message.response_code'="200")) as Success, count(eval('message.response_code'!="200")) as Error&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;On the resuts, I see:&amp;nbsp; Calls 27; Success 11; Error 6&lt;/P&gt;&lt;P&gt;I need also to see in the results, that there was no responses for 10 calls (null_resposes) as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685973#M234062</guid>
      <dc:creator>saidAb</dc:creator>
      <dc:date>2024-04-30T13:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685974#M234063</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="xxxx" sourcetype="xxxxx" message.request_path!=*/healthCheck

          | fillnull value=0 backend_time

          | stats count(eval('message.direction'="request")) as Calls, count(eval('message.response_code'="200")) as Success, count(eval('message.response_code'!="200")) as Error
| eval "No response"=Calls-Success-Error&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:25:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685974#M234063</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-30T13:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685981#M234064</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267397"&gt;@saidAb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you could share your search, it's easier to help you, anyway, I suppose that you are using eval instats, in this case, add the total count of events and calcuate as difference from this value.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats
    count(eval(status="success")) success_count
    count(eval(status="failed")) failed_count
    count
| eval others=count-success_count-failed_count&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685981#M234064</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-04-30T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685986#M234067</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;This works partially very good. It provides in the results all calls, success, errors and no_responses (for the calls where no_response happens) . However it ignores other calls where requests and responses are equal.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 13:55:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685986#M234067</guid>
      <dc:creator>saidAb</dc:creator>
      <dc:date>2024-04-30T13:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685992#M234068</link>
      <description>&lt;P&gt;Resolved. It works now correctly. I added 'by ...' and I see all the results.&lt;/P&gt;&lt;P&gt;Thank you very match!!!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 14:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685992#M234068</guid>
      <dc:creator>saidAb</dc:creator>
      <dc:date>2024-04-30T14:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685994#M234070</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267397"&gt;@saidAb&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 14:17:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685994#M234070</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-04-30T14:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685996#M234071</link>
      <description>&lt;P&gt;Gratie&amp;nbsp;&lt;SPAN&gt;Giuseppe!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See you next time!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have a nice day.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 14:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685996#M234071</guid>
      <dc:creator>saidAb</dc:creator>
      <dc:date>2024-04-30T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685997#M234072</link>
      <description>&lt;P&gt;Thank you very match fro helping me!&lt;/P&gt;&lt;P&gt;This works now fine!&lt;/P&gt;&lt;P&gt;Have nice day!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 14:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/685997#M234072</guid>
      <dc:creator>saidAb</dc:creator>
      <dc:date>2024-04-30T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk queries</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/686000#M234075</link>
      <description>&lt;P&gt;Super! Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 14:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-queries/m-p/686000#M234075</guid>
      <dc:creator>saidAb</dc:creator>
      <dc:date>2024-04-30T14:53:24Z</dc:date>
    </item>
  </channel>
</rss>

