<?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 combine access log data from multiple sources over time in the same line graph? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-access-log-data-from-multiple-sources-over-time/m-p/247345#M73796</link>
    <description>&lt;P&gt;Have you tried (for the given sample data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ihs source="*_access_log.*" | rex field=source "(?&amp;lt;src&amp;gt;\w+\d)" |  timechart span=1m count by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 02 Dec 2015 01:16:27 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2015-12-02T01:16:27Z</dc:date>
    <item>
      <title>How to combine access log data from multiple sources over time in the same line graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-access-log-data-from-multiple-sources-over-time/m-p/247343#M73794</link>
      <description>&lt;P&gt;Greetings!&lt;/P&gt;

&lt;P&gt;I have access logs from multiple sources that I'd like to combine into the same graph, basically to count the number of hits per minute on each source.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ihs source="*_access_log.*" |  timechart span=1m count(eval(source="/logdir/http-logs/source1_access_log.%Y%m%d")) AS source1, count(eval(source="/logdir/http-logs/source2_access_log.%Y%m%d")) AS source2, count(eval(source="/logdir/http-logs/source3_access_log.%Y%m%d")) AS source3, count(eval(source="/logdir/http-logs/source4_access_log.%Y%m%d")) AS source4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically each source has its own name and today's date.  I'm not really sure how to approach it, but the above and everything else I've been trying doesn't work.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Aaron&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 19:35:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-access-log-data-from-multiple-sources-over-time/m-p/247343#M73794</guid>
      <dc:creator>alafferty</dc:creator>
      <dc:date>2015-11-19T19:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine access log data from multiple sources over time in the same line graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-access-log-data-from-multiple-sources-over-time/m-p/247344#M73795</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; index=ihs source="*_access_log.*" |  timechart span=1m count(eval("source=/logdir/http-logs/source1_access_log.'%Y%m%d'")) AS source1, count(eval("source=/logdir/http-logs/source2_access_log.'%Y%m%d'")) AS source2, count(eval("source=/logdir/http-logs/source3_access_log.'%Y%m%d'")) AS source3, count(eval("source=/logdir/http-logs/source4_access_log.'%Y%m%d'")) AS source4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried that.  It actually gets counts ind the source# table, but all of the counts are the same!  Ugh.  The search works fine when I manually specify the date of 20151119 at the end of the access log&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 20:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-access-log-data-from-multiple-sources-over-time/m-p/247344#M73795</guid>
      <dc:creator>alafferty</dc:creator>
      <dc:date>2015-11-19T20:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine access log data from multiple sources over time in the same line graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-access-log-data-from-multiple-sources-over-time/m-p/247345#M73796</link>
      <description>&lt;P&gt;Have you tried (for the given sample data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ihs source="*_access_log.*" | rex field=source "(?&amp;lt;src&amp;gt;\w+\d)" |  timechart span=1m count by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Dec 2015 01:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-access-log-data-from-multiple-sources-over-time/m-p/247345#M73796</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-12-02T01:16:27Z</dc:date>
    </item>
  </channel>
</rss>

