<?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: search - generate a (time, causes, count) collums table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92100#M23751</link>
    <description>&lt;P&gt;I had already added it to the main search.&lt;/P&gt;

&lt;P&gt;Considering all subsequent "| append [search * | eval" subsearches are built on top of it, those subsearches data is already filtered by that timespan right?&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2012 09:43:08 GMT</pubDate>
    <dc:creator>splunk_zen</dc:creator>
    <dc:date>2012-07-10T09:43:08Z</dc:date>
    <item>
      <title>search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92087#M23738</link>
      <description>&lt;P&gt;How can I correctly get a  (time, causes, count) collums search from the following input data example?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   EXECUTION_DATETIME,SERVICE_ACCEPTED_INVOCATIONS,TIMEOUT,ORAEXCEPTIONS,DECODE_ERRORS,STATMENT_PROCESSING_ERRORS,HIT_MAX_REQ_LIMIT,SDF_STATE
20120704 16:00:00,3003896,0,1,1,0,,0
20120704 15:00:00,2968442,4,3,0,0,,0
20120704 14:00:00,2947280,330,0,1,0,,0
20120704 13:00:00,2919975,0,0,0,0,,0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My current search,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=*platform/term_causes.csv | bucket _time span=1d | stats 
dc(TIMEOUT) dc(ORAEXCEPTIONS) dc(DECODE_ERRORS) dc(STATMENT_PROCESSING_ERRORS) dc(HIT_MAX_REQ_LIMIT) dc(SDF_STATE) by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is flawed, the simple XML dashboard generates several incoherently time sorted bubbles &lt;IMG src="https://dl.dropbox.com/u/927023/bubble.PNG" alt="alt text" /&gt;&lt;BR /&gt;
due to the search result not respecting the condition,&lt;/P&gt;

&lt;P&gt;"A single series structure that contains 3 columns. The first column (column 0) contains the values to be plotted on the x-axis. The second column (column 1) contains the values to be plotted on the y-axis. And the third column (column 2) contains the values to be plotted on the z-axis."&lt;/P&gt;

&lt;P&gt;So, if I correctly understood, my goal would be to generate a search (and probably join it with a subsearch? ) which would return the following structure,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;20120704 16:00:00 EXECUTION_DATETIME 0
20120704 16:00:00 TIMEOUT 1
20120704 16:00:00 ORAEXCEPTIONS 1
20120704 16:00:00 DECODE_ERRORS 0
20120704 16:00:00 STATMENT_PROCESSING_ERRORS 0
20120704 16:00:00 HIT_MAX_REQ_LIMIT
20120704 16:00:00 SDF_STATE 0
...
20120704 14:00:00 EXECUTION_DATETIME 0
20120704 14:00:00 TIMEOUT 330
20120704 14:00:00 ORAEXCEPTIONS 0
20120704 14:00:00 DECODE_ERRORS 1
20120704 14:00:00 STATMENT_PROCESSING_ERRORS 0
20120704 14:00:00 HIT_MAX_REQ_LIMIT
20120704 14:00:00 SDF_STATE 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jul 2012 17:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92087#M23738</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-07-05T17:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92088#M23739</link>
      <description>&lt;P&gt;Was my question clear enough?&lt;BR /&gt;
Would further clarification be useful for someone to help answer it?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 09:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92088#M23739</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-07-09T09:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92089#M23740</link>
      <description>&lt;P&gt;Could you provide an example of the desired result, not just your current result and that it's wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 10:30:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92089#M23740</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-09T10:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92090#M23741</link>
      <description>&lt;P&gt;what exactly should the causes field contain? it's one field, but you are generating multiple fields in your search -&amp;gt; dc(TIMEOUT) dc(ORAEXCEPTIONS) dc(DECODE_ERRORS) dc(STATMENT_PROCESSING_ERRORS) dc(HIT_MAX_REQ_LIMIT) dc(SDF_STATE).&lt;/P&gt;

&lt;P&gt;it would help if you pointed out which field corresponds to which axis, and how that field is defined:&lt;/P&gt;

&lt;P&gt;x axis: time (EXECUTION_DATETIME) &lt;BR /&gt;&lt;BR /&gt;
y axis: ? &lt;BR /&gt;&lt;BR /&gt;
z axis: count(?)&lt;/P&gt;

&lt;P&gt;your time axis (x) is off because the chart is reading the time as the series values, not the x axis. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:02:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92090#M23741</guid>
      <dc:creator>ak</dc:creator>
      <dc:date>2020-09-28T12:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92091#M23742</link>
      <description>&lt;P&gt;Sure, hope it becomes clearer now.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 14:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92091#M23742</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-07-09T14:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92092#M23743</link>
      <description>&lt;P&gt;ak, the y axis should be each of the dc() fields,&lt;BR /&gt;
TIMEOUT ORAEXCEPTIONS DECODE_ERRORS STATMENT_PROCESSING_ERRORS HIT_MAX_REQ_LIMIT SDF_STATE&lt;BR /&gt;
whereas the z axis should correspond to the count of each one of them,&lt;BR /&gt;
dc(TIMEOUT) dc(ORAEXCEPTIONS) dc(DECODE_ERRORS) dc(STATMENT_PROCESSING_ERRORS) dc(HIT_MAX_REQ_LIMIT) dc(SDF_STATE)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92092#M23743</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2020-09-28T12:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92093#M23744</link>
      <description>&lt;P&gt;Ok, so did you resolve your issue?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 15:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92093#M23744</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-09T15:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92094#M23745</link>
      <description>&lt;P&gt;why are you using the dc function? don't you just want the actual value in there? for example the value of 330 - that's the actual value, not the dc.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 16:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92094#M23745</guid>
      <dc:creator>ak</dc:creator>
      <dc:date>2012-07-09T16:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92095#M23746</link>
      <description>&lt;P&gt;Ayn, not yet, I don't know how to build the final search&lt;BR /&gt;
which returns the aforementioned structure.&lt;/P&gt;

&lt;P&gt;ak, my goal is to count all the different contributions from each root cause and generate a bubble for each of them per day,&lt;BR /&gt;
that's why I'm using,&lt;BR /&gt;
| bucket _time span=1d&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 16:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92095#M23746</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-07-09T16:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92096#M23747</link>
      <description>&lt;P&gt;Disclaimer: the search is not pretty, and could probably use some performance tweaking.&lt;/P&gt;

&lt;P&gt;source="testlog.log" &lt;BR /&gt;
&lt;BR /&gt;| eval category="SERVICE_ACCEPTED_INVOCATIONS" | stats dc(SERVICE_ACCEPTED_INVOCATIONS) as count by category, _time | table _time category count &lt;BR /&gt;
&lt;BR /&gt;| append [search * | eval category="TIMEOUT" | stats dc(TIMEOUT) as count by category, _time | table _time category count] &lt;BR /&gt;
&lt;BR /&gt;| append [search * | eval category="ORAEXCEPTIONS" | stats dc(ORAEXCEPTIONS) as count by category, _time | table _time category count] &lt;BR /&gt;
&lt;BR /&gt;| append [search * | eval category="DECODE_ERRORS" | stats dc(DECODE_ERRORS) as count by category, _time | table _time category count] &lt;BR /&gt;
&lt;BR /&gt;| append [search * | eval category="STATMENT_PROCESSING_ERRORS" | stats dc(STATMENT_PROCESSING_ERRORS) as count by category, _time | table _time category count] &lt;BR /&gt;
&lt;BR /&gt;| append [search * | eval category="HIT_MAX_REQ_LIMIT" | stats dc(HIT_MAX_REQ_LIMIT) as count by category, _time | table _time category count] &lt;BR /&gt;
&lt;BR /&gt;| append [search * | eval category="SDF_STATE" | stats dc(SDF_STATE) as count by category, _time | table _time category count]&lt;/P&gt;

&lt;P&gt;I haven't tried this out with the bubble chart, but it will get you the table in the format you wanted:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
_time                   category                count &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
7/4/12 1:00:00.291 PM   HIT_MAX_REQ_LIMIT   0 &lt;BR /&gt;&lt;BR /&gt;
7/4/12 2:00:00.294 PM   HIT_MAX_REQ_LIMIT   0 &lt;BR /&gt;&lt;BR /&gt;
7/4/12 3:00:00.296 PM   HIT_MAX_REQ_LIMIT   0 &lt;BR /&gt;&lt;BR /&gt;
7/4/12 4:00:00.300 PM   HIT_MAX_REQ_LIMIT   0 &lt;BR /&gt;&lt;BR /&gt;
7/4/12 1:00:00.291 PM   SDF_STATE   1&lt;BR /&gt;&lt;BR /&gt;
7/4/12 2:00:00.294 PM   SDF_STATE   1&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:02:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92096#M23747</guid>
      <dc:creator>ak</dc:creator>
      <dc:date>2020-09-28T12:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92097#M23748</link>
      <description>&lt;P&gt;Thanks. I do appreciate the effort,&lt;BR /&gt;
the search for the last 7 days times out,&lt;BR /&gt;
"The job appears to have expired or has been canceled. Splunk could not retrieve data for this search."&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 18:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92097#M23748</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-07-09T18:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92098#M23749</link>
      <description>&lt;P&gt;If I tweak it for the last 24h, the table gets correctly returned but the bubble chart returns,&lt;/P&gt;

&lt;P&gt;"Encountered an error while reading file '/opt/splunk/splunk/var/run/splunk/dispatchtmp/subsearch_1341857990.1072_1341857990.1/statstmp_1341858018.7_0.csv.gz'"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92098#M23749</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2020-09-28T12:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92099#M23750</link>
      <description>&lt;P&gt;one thing you could try is adding the | bucket _time span=YOURSPAN |. I don't have that in the search above. Add it to all the subsearches&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 18:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92099#M23750</guid>
      <dc:creator>ak</dc:creator>
      <dc:date>2012-07-09T18:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: search - generate a (time, causes, count) collums table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92100#M23751</link>
      <description>&lt;P&gt;I had already added it to the main search.&lt;/P&gt;

&lt;P&gt;Considering all subsequent "| append [search * | eval" subsearches are built on top of it, those subsearches data is already filtered by that timespan right?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2012 09:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-generate-a-time-causes-count-collums-table/m-p/92100#M23751</guid>
      <dc:creator>splunk_zen</dc:creator>
      <dc:date>2012-07-10T09:43:08Z</dc:date>
    </item>
  </channel>
</rss>

