<?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: Custom Search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/677954#M231846</link>
    <description>&lt;LI-CODE lang="markup"&gt;| bin _time span=1d
| stats sum(SuccessCount) as SuccessCount sum(FailedCount) as FailedCount by _time&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 18 Feb 2024 20:08:45 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-02-18T20:08:45Z</dc:date>
    <item>
      <title>Custom Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/677953#M231845</link>
      <description>&lt;P&gt;query:&lt;/P&gt;&lt;P&gt;|tstats count where index=new_index host=new-host source=&lt;A href="https://itcsr.welcome.com/logs*" target="_blank"&gt;https://itcsr.welcome.com/logs*&lt;/A&gt; by PREFIX(status:) _time&lt;BR /&gt;|rename status:&amp;nbsp; as Total_Status&lt;BR /&gt;|where isnotnull(Total_Status)&lt;BR /&gt;|eval SuccessCount=if(Total_Status="0", count, Success), FailedCount=if(Total_Status!="0", count, Failed)&lt;/P&gt;&lt;P&gt;OUTPUT:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;Total_Status&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;count&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;FailedCount&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;SuccessCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;2022-01-12 13:30&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;100&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;2022-01-12 13:00&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;200&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;2022-01-13 11:30&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;110&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;110&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;500&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;2022-01-13 11:00&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;500&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;2022-01-11 10:30&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;500&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;2022-01-11 10:00&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;8&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;8&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i want the output as shown below table:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;SuccessCount&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;FailedCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2022-01-13&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;110&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2022-01-12&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;300&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2022-01-11&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 18 Feb 2024 19:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/677953#M231845</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2024-02-18T19:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/677954#M231846</link>
      <description>&lt;LI-CODE lang="markup"&gt;| bin _time span=1d
| stats sum(SuccessCount) as SuccessCount sum(FailedCount) as FailedCount by _time&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 18 Feb 2024 20:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/677954#M231846</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-18T20:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/678007#M231864</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you it worked, but when there are no counts it's showing as empty values in table.&lt;/P&gt;&lt;P&gt;I used fillnull value=0, but it's not working.&lt;/P&gt;&lt;P&gt;How to do this???&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 18:20:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/678007#M231864</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2024-02-19T18:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/678045#M231881</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| timechart span=1d sum(SuccessCount) as SuccessCount sum(FailedCount) as FailedCount&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Feb 2024 09:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/678045#M231881</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-20T09:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/678611#M232044</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 18:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search/m-p/678611#M232044</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2024-02-25T18:53:06Z</dc:date>
    </item>
  </channel>
</rss>

