<?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 query Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635121#M220661</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Column 3 : total count of all the shuttle. &amp;nbsp;&amp;amp; column 4 : (count of each shuttle/ total count of all the shuttle)&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2023 11:40:18 GMT</pubDate>
    <dc:creator>uagraw01</dc:creator>
    <dc:date>2023-03-20T11:40:18Z</dc:date>
    <item>
      <title>How to create the Splunk query Search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635109#M220656</link>
      <description>&lt;P&gt;Hello Splunkers!!&lt;/P&gt;
&lt;P&gt;I have mentioned below query and from the below query I want a results as shown below in the excel. Please help me achieve that result.&lt;/P&gt;
&lt;P&gt;index=ABC sourcetype=ABC&lt;BR /&gt;| eval date_year=strftime('_time',"%Y"), date_month=strftime('_time',"%B"), day_week=strftime('_time',"%A"), date_mday=strftime('_time',"%d"), date_hour=strftime('_time',"%H"), date_minute=strftime('_time',"%M") | stats count count(eval(ShuttleId)) as total by sourcetype&lt;BR /&gt;| table sourcetype total&lt;BR /&gt;| join max=0 type=outer sourcetype&lt;BR /&gt;[| search index=ABC sourcetype=ABC&lt;BR /&gt;| eval date_year=strftime('_time',"%Y"), date_month=strftime('_time',"%B"), day_week=strftime('_time',"%A"), date_mday=strftime('_time',"%d"), date_hour=strftime('_time',"%H"), date_minute=strftime('_time',"%M") | stats count by ShuttleId sourcetype _time]&lt;BR /&gt;| table ShuttleId count total&lt;BR /&gt;| eval condition =if(round((count/total),2) &amp;lt;=0, "GREEN", "RED")&lt;BR /&gt;| eval Status =round((count/total),2)&lt;BR /&gt;| eval Shuttle_percentage = round(((count/total)*100),2)&lt;BR /&gt;| table ShuttleId Shuttle_percentage&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="491"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="198"&gt;_time&lt;/TD&gt;
&lt;TD width="147"&gt;ShuttleId&lt;/TD&gt;
&lt;TD width="84"&gt;Total_Orders&lt;/TD&gt;
&lt;TD width="62"&gt;Errors&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-08-03T00:00:00.000+0000&lt;/TD&gt;
&lt;TD&gt;Shuttle_001&lt;/TD&gt;
&lt;TD&gt;69341&lt;/TD&gt;
&lt;TD&gt;117&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-08-04T00:00:00.000+0000&lt;/TD&gt;
&lt;TD&gt;Shuttle_002&lt;/TD&gt;
&lt;TD&gt;85640&lt;/TD&gt;
&lt;TD&gt;51&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-08-05T00:00:00.000+0000&lt;/TD&gt;
&lt;TD&gt;Shuttle_003&lt;/TD&gt;
&lt;TD&gt;72260&lt;/TD&gt;
&lt;TD&gt;43&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-08-06T00:00:00.000+0000&lt;/TD&gt;
&lt;TD&gt;Shuttle_004&lt;/TD&gt;
&lt;TD&gt;60291&lt;/TD&gt;
&lt;TD&gt;22&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-08-07T00:00:00.000+0000&lt;/TD&gt;
&lt;TD&gt;Shuttle_005&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 21:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635109#M220656</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2023-03-20T21:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635118#M220658</link>
      <description>&lt;P&gt;You have present a seemingly random set of SPL which bear little resemblance to your expected output, with meaningless evaluations which are often not used.&lt;/P&gt;&lt;P&gt;What is it you are actually trying to do, and what have you actually tried so far?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635118#M220658</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-20T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635119#M220659</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; | eval command for condition we can ignore.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I need a result like :&lt;/P&gt;&lt;P&gt;column 1 : time&lt;/P&gt;&lt;P&gt;column 2 : shuttle name&lt;/P&gt;&lt;P&gt;column 3 : total number of shuttle&lt;/P&gt;&lt;P&gt;column 4 : number of count of each shuttle.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:35:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635119#M220659</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2023-03-20T11:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635120#M220660</link>
      <description>&lt;P&gt;What it the difference between column 3 and 4?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:37:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635120#M220660</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-20T11:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635121#M220661</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Column 3 : total count of all the shuttle. &amp;nbsp;&amp;amp; column 4 : (count of each shuttle/ total count of all the shuttle)&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635121#M220661</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2023-03-20T11:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635122#M220662</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats count by _time shuttleId
| eventstats sum(count) as total by shuttleId&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:42:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635122#M220662</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-20T11:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635123#M220663</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Let me check and try&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635123#M220663</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2023-03-20T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635126#M220664</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; I think I am getting below results. Please correct me for the below SPL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uagraw01_0-1679314570849.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24377iD24B1DF540A9CC7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="uagraw01_0-1679314570849.png" alt="uagraw01_0-1679314570849.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;=========================================================&lt;/P&gt;&lt;P&gt;index=ora_adam sourcetype=OtShuttleError&lt;BR /&gt;| eval date_year=strftime('_time',"%Y"), date_month=strftime('_time',"%B"), day_week=strftime('_time',"%A"), date_mday=strftime('_time',"%d"), date_hour=strftime('_time',"%H"), date_minute=strftime('_time',"%M") | stats count count(eval(ShuttleId)) as total by sourcetype _time&lt;BR /&gt;| table sourcetype total _time&lt;BR /&gt;| join max=0 type=outer sourcetype&lt;BR /&gt;[| search index=ora_adam sourcetype=OtShuttleError&lt;BR /&gt;| eval date_year=strftime('_time',"%Y"), date_month=strftime('_time',"%B"), day_week=strftime('_time',"%A"), date_mday=strftime('_time',"%d"), date_hour=strftime('_time',"%H"), date_minute=strftime('_time',"%M") | stats count by ShuttleId sourcetype _time]&lt;BR /&gt;| eventstats sum(count) as total by shuttleId&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 12:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635126#M220664</guid>
      <dc:creator>uagraw01</dc:creator>
      <dc:date>2023-03-20T12:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635149#M220671</link>
      <description>&lt;P&gt;You might want to consider using the bin command to group your counts by hours or days, but it depends on what your requirement actually is.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 14:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-the-Splunk-query-Search/m-p/635149#M220671</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-20T14:41:31Z</dc:date>
    </item>
  </channel>
</rss>

