<?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 timechart overlay multiple strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69499#M17414</link>
    <description>&lt;P&gt;I want to search 2 strings in log file, like "A string" &amp;amp; "B String", A string should be treated as successful and B as Failure. Next I want to overlay both as line timechart, where successful events should go above x-axis and Failure events go below x-axis or they are showed as different colors.How this can be done?&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2013 18:43:49 GMT</pubDate>
    <dc:creator>sunil_sharma</dc:creator>
    <dc:date>2013-09-20T18:43:49Z</dc:date>
    <item>
      <title>timechart overlay multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69499#M17414</link>
      <description>&lt;P&gt;I want to search 2 strings in log file, like "A string" &amp;amp; "B String", A string should be treated as successful and B as Failure. Next I want to overlay both as line timechart, where successful events should go above x-axis and Failure events go below x-axis or they are showed as different colors.How this can be done?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 18:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69499#M17414</guid>
      <dc:creator>sunil_sharma</dc:creator>
      <dc:date>2013-09-20T18:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: timechart overlay multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69500#M17415</link>
      <description>&lt;P&gt;There are many ways, but this might be easiest.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=logfilename "A string"
| eval series = "Success"
| append [ search source=logfilename "B string"
     | eval series = "Failure" ]
| timechart count by series
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Sep 2013 22:25:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69500#M17415</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-09-20T22:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: timechart overlay multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69501#M17416</link>
      <description>&lt;P&gt;Thank you Iguinn,&lt;BR /&gt;
It almost worked but how do I give alias to search string? My timechart shows Success and failure which I don't wanna show instead I want to give alias to them and also span for a day,Hi Thank you for your answer it almost worked but how do I give alias for search string and search for span of a 1day&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 08:44:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69501#M17416</guid>
      <dc:creator>SaiSirisha</dc:creator>
      <dc:date>2015-03-06T08:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: timechart overlay multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69502#M17417</link>
      <description>&lt;P&gt;How can I do a timechart with 2 strings and also give a Alias names to the string . How can span the reults for 1 day within same query?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 09:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69502#M17417</guid>
      <dc:creator>SaiSirisha</dc:creator>
      <dc:date>2015-03-06T09:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: timechart overlay multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69503#M17418</link>
      <description>&lt;P&gt;You should post this as a new question, or a comment, instead of an answer to the top question.&lt;/P&gt;

&lt;P&gt;But to answer your answer: You can create an alias (called a &lt;EM&gt;search macro&lt;/EM&gt; in Splunk) for a search string in the GUI under Settings - Advanced Search - Search Macros. To use the macro once it's been created, you have to surround your macro with backticks, like this: &lt;CODE&gt;&lt;CODE&gt;myawesomemacro()&lt;/CODE&gt;&lt;/CODE&gt;. The parenthesis are best to include, since there are cases where they are required even if you have no arguments.&lt;/P&gt;

&lt;P&gt;As for span, you can use &lt;CODE&gt;span=1d&lt;/CODE&gt;. Check the &lt;CODE&gt;timechart&lt;/CODE&gt; search command help and you will find the&lt;CODE&gt;span&lt;/CODE&gt; option along with some example usage.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 12:56:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69503#M17418</guid>
      <dc:creator>laserval</dc:creator>
      <dc:date>2015-03-06T12:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: timechart overlay multiple strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69504#M17419</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I knew that I had to post as new question and I even tried but continously gave me form error. That the reason I posted my question as an answer.&lt;/P&gt;

&lt;P&gt;Anyways Thank you so much for the reply. it worked.&lt;BR /&gt;
Sorry for inconvenience caused.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2015 07:40:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-overlay-multiple-strings/m-p/69504#M17419</guid>
      <dc:creator>SaiSirisha</dc:creator>
      <dc:date>2015-03-09T07:40:02Z</dc:date>
    </item>
  </channel>
</rss>

