<?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: Problem in Search Command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problem-in-Search-Command/m-p/98847#M25497</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I wouldn't use the _time field in this case. If you want a time trend a sparkline can give you a good indication of when cases happened throughout the day. How about you summarize using something like&lt;/P&gt;

&lt;P&gt;search.. | stats sparkline sum(cases) as NoOfCases by location&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jul 2013 05:41:11 GMT</pubDate>
    <dc:creator>clymbouris</dc:creator>
    <dc:date>2013-07-21T05:41:11Z</dc:date>
    <item>
      <title>Problem in Search Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-in-Search-Command/m-p/98844#M25494</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please take a look at my table below which i came up with using this search command &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype="json_onemap" | stats max(cases) as NoOfCases by description location _time | sort -_time&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;I manage to come up with this search command to see an overview of the data i want to retrieve but I just could not derive the logic. I need to sum up the no. of cases in each description with the same location in the given day. &lt;/P&gt;

&lt;P&gt;Please help me!&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/qn_1.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I want to achieve something like this:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/qn1.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Thank you and have a nice day ahead !&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-in-Search-Command/m-p/98844#M25494</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2020-09-28T14:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Search Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-in-Search-Command/m-p/98845#M25495</link>
      <description>&lt;P&gt;do you want to achieve that at the same time that you get that table?? coz otherwise you can always omit "description" in your search, sorry not sure if I understood what you are after&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 02:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-in-Search-Command/m-p/98845#M25495</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2013-07-19T02:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Search Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-in-Search-Command/m-p/98846#M25496</link>
      <description>&lt;P&gt;What I want to achieve is to add up all the cases in the same location, but I have lots of duplicate event inside splunk. The data came out incorrect when i use sum.Is okay, I have solved the problem.&lt;BR /&gt;
Thanks anyway (:&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 07:58:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-in-Search-Command/m-p/98846#M25496</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2013-07-19T07:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Search Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-in-Search-Command/m-p/98847#M25497</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I wouldn't use the _time field in this case. If you want a time trend a sparkline can give you a good indication of when cases happened throughout the day. How about you summarize using something like&lt;/P&gt;

&lt;P&gt;search.. | stats sparkline sum(cases) as NoOfCases by location&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2013 05:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-in-Search-Command/m-p/98847#M25497</guid>
      <dc:creator>clymbouris</dc:creator>
      <dc:date>2013-07-21T05:41:11Z</dc:date>
    </item>
  </channel>
</rss>

