<?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: timechart and metadata in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248908#M74331</link>
    <description>&lt;P&gt;thank you for woodcock and for somesoni2, answer is OK, it works.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2015 07:18:40 GMT</pubDate>
    <dc:creator>hunyady</dc:creator>
    <dc:date>2015-09-30T07:18:40Z</dc:date>
    <item>
      <title>timechart and metadata</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248904#M74327</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have two indizes: dbtrace and dbmsg. The 1st "dbtrace" has trace recs of bags, the 2nd "dbmsg" stores the error msgs with PRIO flag.&lt;BR /&gt;
A timechart (one line per index) should count the recs from dbtrace and count the recs from dbmsg with PRIO 2 flag. &lt;/P&gt;

&lt;P&gt;All bags have an ID (p_id).&lt;/P&gt;

&lt;P&gt;My timechart should show a line whit all bags counted only once even if there are more recs for the p_id:&lt;BR /&gt;
i.E. p_id #3 has 5, p_id #4 has 1, and p_id #5 has 2 recs for an interval.&lt;BR /&gt;
In dbmsg are 6 records for the same timeinterval.&lt;/P&gt;

&lt;P&gt;My result from dbtrace are 5+1+2 records for this timeinterval.  I'd like to count &lt;STRONG&gt;unique&lt;/STRONG&gt; resulting to the value of 3.&lt;BR /&gt;
Splunk search:&lt;BR /&gt;
(index=dbtrace status=ERROR) OR (index=dbmsg PRIO=2) | eval typ=case(index=dbtrace,"Error",index=dbmsg,"Message") | timechart span=10m count by typ&lt;/P&gt;

&lt;P&gt;Result is : 8 recs from dbtrace and 6 from dbmsg. I need 3 from dbtrace and 6 from dbmsg.&lt;/P&gt;

&lt;P&gt;Can Splunk combine in 1 search unique and non unique queries and display it in one timechart ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248904#M74327</guid>
      <dc:creator>hunyady</dc:creator>
      <dc:date>2020-09-29T07:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and metadata</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248905#M74328</link>
      <description>&lt;P&gt;sorry have sent with text "metadata" in title ...&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 15:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248905#M74328</guid>
      <dc:creator>hunyady</dc:creator>
      <dc:date>2015-09-29T15:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and metadata</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248906#M74329</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=dbtrace status=ERROR) OR (index=dbmsg PRIO=2)  | timechart span=10m dc(p_id) as "Error" count(eval(index="dbmsg")) as Message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2015 16:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248906#M74329</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-29T16:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and metadata</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248907#M74330</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=dbtrace status=ERROR) OR (index=dbmsg PRIO=2) | timechart span=10m dc(p_id) BY index | rename dbtrace AS Error dbmsg AS Message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2015 20:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248907#M74330</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-29T20:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: timechart and metadata</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248908#M74331</link>
      <description>&lt;P&gt;thank you for woodcock and for somesoni2, answer is OK, it works.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 07:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-and-metadata/m-p/248908#M74331</guid>
      <dc:creator>hunyady</dc:creator>
      <dc:date>2015-09-30T07:18:40Z</dc:date>
    </item>
  </channel>
</rss>

