<?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: How to generate a timechart from multiple data sources? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334749#M99479</link>
    <description>&lt;P&gt;Not sure about this. It is not giving expected results. But, the one answer posted below seems to work fine&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2017 15:34:28 GMT</pubDate>
    <dc:creator>ataunk</dc:creator>
    <dc:date>2017-03-03T15:34:28Z</dc:date>
    <item>
      <title>How to generate a timechart from multiple data sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334745#M99475</link>
      <description>&lt;P&gt;I need a time chart from multiple source --&lt;/P&gt;

&lt;P&gt;First source search : &lt;CODE&gt;host=abcdefgh source="Test.log" index=app_ops_prod SessionID="*"&lt;/CODE&gt;&lt;BR /&gt;
Second Source search : &lt;CODE&gt;host=abcdefgh source="Test.log" index=app_ops_prod "error.timeout"&lt;/CODE&gt;&lt;BR /&gt;
Third Source search : &lt;CODE&gt;host=abcdefgh source="Test.log" index=app_ops_prod "error.badurl"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;My SessionID is a field, but other two strings might be present in the raw log. In short, for one request a log line is generated which will always have a SessionID, but few log lines may contain error. I want a timechart that will show number of request (i.e. count of SessionID) and the errors in all the request.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 02:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334745#M99475</guid>
      <dc:creator>ataunk</dc:creator>
      <dc:date>2017-03-03T02:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a timechart from multiple data sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334746#M99476</link>
      <description>&lt;P&gt;Plz try that.&lt;/P&gt;

&lt;P&gt;index=app_ops_prod host=abcdefgh source="Test.log"  SessionID="*" | timechart span=1m count(SessionID) | appendcols [search index=app_ops_prod host=abcdefgh source="Test.log"  ("error.badurl" OR  "error.timeout") | timechart span=1m count]&lt;/P&gt;

&lt;P&gt;Also on the chart, you can add the chart overlay to better illustrate your data.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334746#M99476</guid>
      <dc:creator>arcdevil</dc:creator>
      <dc:date>2020-09-29T13:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a timechart from multiple data sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334747#M99477</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=abcdefgh source="Test.log" index=app_ops_prod (SessionID="*" OR "error.timeout" OR  "error.badurl" )
| eval TimeoutError=if(searchmatch("error.timeout"),1,0) | eval BadUrlError=if(searchmatch("error.badurl"),1,0) 
| timechart count(SessionID) as NoOfRequests sum(TimeoutError) as TimeoutError sum(BadUrlError) as BadUrlError
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334747#M99477</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-03T15:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a timechart from multiple data sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334748#M99478</link>
      <description>&lt;P&gt;This is working as expected. &lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334748#M99478</guid>
      <dc:creator>ataunk</dc:creator>
      <dc:date>2017-03-03T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a timechart from multiple data sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334749#M99479</link>
      <description>&lt;P&gt;Not sure about this. It is not giving expected results. But, the one answer posted below seems to work fine&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334749#M99479</guid>
      <dc:creator>ataunk</dc:creator>
      <dc:date>2017-03-03T15:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a timechart from multiple data sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334750#M99480</link>
      <description>&lt;P&gt;No problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I'm glad to hear that your problem has been solved.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-timechart-from-multiple-data-sources/m-p/334750#M99480</guid>
      <dc:creator>arcdevil</dc:creator>
      <dc:date>2017-03-03T15:55:04Z</dc:date>
    </item>
  </channel>
</rss>

