<?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 Combining charts from different searches in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70613#M17684</link>
    <description>&lt;P&gt;im using something like this:&lt;/P&gt;

&lt;P&gt;sourcetype="A" category="CatA" "msg string in my log not stored as a field" | timechart span=1h count(_raw)&lt;/P&gt;

&lt;P&gt;this gives me a single charted line which tracks occurrences of that particular log with string specified. I hav several of such lines. However is there a way to save each of this 'search' under a single name so that i can combine them into a single chart?&lt;/P&gt;

&lt;P&gt;im not sure if this is possible (i suspect it has to do with eval)? any tips?  &lt;/P&gt;

&lt;P&gt;EDIT:&lt;BR /&gt;&lt;BR /&gt;
Event looks like this:   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;6/27/2011 3:47:02 AM    6/27/2011 3:47:02 AM    pss2wlsfe2b [ps2wseb] PS.RR.SV.APP Full GC detected in log file [directory/gc.log] line [254988] (5 occurrences since 11:42:01) CLOSED  WARNING App
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so basically, from "Full GC detected in log file [directory/gc.log] line &lt;A href="5%20occurrences%20since%2011:42:01"&gt;254988&lt;/A&gt;"&lt;BR /&gt;
they are replacable by the following messages as well. &lt;/P&gt;

&lt;P&gt;Warn:Full GC detected in log file line &lt;A href="2%20occurrences%20since%2023:28:01"&gt;3&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
Memory high after full GC (90.19%/90%, next threshold 95%)&lt;BR /&gt;&lt;BR /&gt;
Err:Memory high after full GC (80%/75%, next threshold 80%)&lt;/P&gt;

&lt;P&gt;basically im looking out for almost the entire main phrase:&lt;BR /&gt;&lt;BR /&gt;
"full gc detected in log file"&lt;BR /&gt;&lt;BR /&gt;
"memory high after full gc"&lt;BR /&gt;&lt;BR /&gt;
"err:memory high after full gc"&lt;/P&gt;

&lt;P&gt;to see if they occur at the same time or over diff periods of time&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jun 2012 06:06:14 GMT</pubDate>
    <dc:creator>attgjh1</dc:creator>
    <dc:date>2012-06-08T06:06:14Z</dc:date>
    <item>
      <title>Combining charts from different searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70613#M17684</link>
      <description>&lt;P&gt;im using something like this:&lt;/P&gt;

&lt;P&gt;sourcetype="A" category="CatA" "msg string in my log not stored as a field" | timechart span=1h count(_raw)&lt;/P&gt;

&lt;P&gt;this gives me a single charted line which tracks occurrences of that particular log with string specified. I hav several of such lines. However is there a way to save each of this 'search' under a single name so that i can combine them into a single chart?&lt;/P&gt;

&lt;P&gt;im not sure if this is possible (i suspect it has to do with eval)? any tips?  &lt;/P&gt;

&lt;P&gt;EDIT:&lt;BR /&gt;&lt;BR /&gt;
Event looks like this:   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;6/27/2011 3:47:02 AM    6/27/2011 3:47:02 AM    pss2wlsfe2b [ps2wseb] PS.RR.SV.APP Full GC detected in log file [directory/gc.log] line [254988] (5 occurrences since 11:42:01) CLOSED  WARNING App
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so basically, from "Full GC detected in log file [directory/gc.log] line &lt;A href="5%20occurrences%20since%2011:42:01"&gt;254988&lt;/A&gt;"&lt;BR /&gt;
they are replacable by the following messages as well. &lt;/P&gt;

&lt;P&gt;Warn:Full GC detected in log file line &lt;A href="2%20occurrences%20since%2023:28:01"&gt;3&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;
Memory high after full GC (90.19%/90%, next threshold 95%)&lt;BR /&gt;&lt;BR /&gt;
Err:Memory high after full GC (80%/75%, next threshold 80%)&lt;/P&gt;

&lt;P&gt;basically im looking out for almost the entire main phrase:&lt;BR /&gt;&lt;BR /&gt;
"full gc detected in log file"&lt;BR /&gt;&lt;BR /&gt;
"memory high after full gc"&lt;BR /&gt;&lt;BR /&gt;
"err:memory high after full gc"&lt;/P&gt;

&lt;P&gt;to see if they occur at the same time or over diff periods of time&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 06:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70613#M17684</guid>
      <dc:creator>attgjh1</dc:creator>
      <dc:date>2012-06-08T06:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Combining charts from different searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70614#M17685</link>
      <description>&lt;P&gt;I would say that this is possible with &lt;CODE&gt;rex&lt;/CODE&gt;, i.e. extracting fields on the fly, but it's pretty dependant on how the events are formatted. My idea for doing this is;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=A category=CatA "string no 1" OR "string no 2" OR "string no 3" 
| rex "blaha (?&amp;lt;my_string&amp;gt;(string no 1 | string no 2 | string no 3)) blaha" 
| timechart span=1h count by my_string
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please post a few sample messages to be able to get better help.&lt;/P&gt;

&lt;P&gt;From your ONE sample, it's hard to tell the general pattern of the possible log messages, but here's a shot at extracting the interesting string as a field;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=A category=CatA | rex "\[\w+\]\s[A-Z.]\s(?&amp;lt;msg_string&amp;gt;[\s\w:]+)" | timechart c by msg_string
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have a lot of events that do not contain a &lt;CODE&gt;msg_string&lt;/CODE&gt;, you could insert a search &lt;CODE&gt;msg_string=&lt;/CODE&gt;* after the &lt;CODE&gt;rex&lt;/CODE&gt;, but before the &lt;CODE&gt;timechart&lt;/CODE&gt;/&lt;CODE&gt;stats&lt;/CODE&gt;/whatever function.&lt;/P&gt;

&lt;P&gt;BR&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 07:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70614#M17685</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-08T07:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Combining charts from different searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70615#M17686</link>
      <description>&lt;P&gt;updated. &lt;BR /&gt;
;)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 08:02:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70615#M17686</guid>
      <dc:creator>attgjh1</dc:creator>
      <dc:date>2012-06-08T08:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Combining charts from different searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70616#M17687</link>
      <description>&lt;P&gt;Full events, please  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Just mask any sensitive stuff, ip-addresses, accounts etc.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jun 2012 10:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70616#M17687</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-06-08T10:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Combining charts from different searches</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70617#M17688</link>
      <description>&lt;P&gt;ok. &lt;BR /&gt;
thanks for the help so far! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 00:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-charts-from-different-searches/m-p/70617#M17688</guid>
      <dc:creator>attgjh1</dc:creator>
      <dc:date>2012-06-11T00:48:10Z</dc:date>
    </item>
  </channel>
</rss>

