<?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 do I make a search string to get Real Time data from multiple *.txt files? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385170#M112472</link>
    <description>&lt;P&gt;How about.....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(host=jp) source="/home/jp/pings/targets/googledns.txt" OR source="/home/jp/pings/targets/defaultGateway.txt"
| timechart avg(time) by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Sep 2018 17:25:34 GMT</pubDate>
    <dc:creator>msivill_splunk</dc:creator>
    <dc:date>2018-09-18T17:25:34Z</dc:date>
    <item>
      <title>How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385169#M112471</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5814iFFA47E97AF0C03FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;Dear Team,&lt;/P&gt;

&lt;P&gt;I'm trying to to get data from two *.txt files into a single Line Chart.&lt;/P&gt;

&lt;P&gt;For example, with the following string, I get the data into the Line Chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(host=jp) source="/home/jp/pings/targets/googledns.txt" | timechart avg(time)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, what I am trying to do is also get data from another .txt file, at the same time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(host=jp) source="/home/jp/pings/targets/defaultGateway.txt" | timechart avg(time)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... so in one Line Chart, it would show the data from both files.&lt;/P&gt;

&lt;P&gt;With the following string, in Real Time, it only shows sheet1 in the Line Chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(host=jp) source="/home/jp/pings/targets/googledns.txt" | timechart avg(time) as sheet1 |appendcols  [search (host=jp) source="/home/jp/pings/targets/defaultGateway.txt" | timechart avg(time) as sheet2]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I verified that when I change from Real Time -&amp;gt; 30 minute windows... to... Last 15 minutes... it shows sheet1 and sheet2.&lt;/P&gt;

&lt;P&gt;This means that the script you provided is not for Real Time reading of data, due to it it only shows sheet1.&lt;/P&gt;

&lt;P&gt;Could you please provide us a string that is capable to read multiple .txt files in Real Time mode?&lt;/P&gt;

&lt;P&gt;Thank you in advance&lt;/P&gt;

&lt;P&gt;Kind regards&lt;BR /&gt;
JP&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 17:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385169#M112471</guid>
      <dc:creator>pascoaljo</dc:creator>
      <dc:date>2018-09-18T17:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385170#M112472</link>
      <description>&lt;P&gt;How about.....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(host=jp) source="/home/jp/pings/targets/googledns.txt" OR source="/home/jp/pings/targets/defaultGateway.txt"
| timechart avg(time) by source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Sep 2018 17:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385170#M112472</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-09-18T17:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385171#M112473</link>
      <description>&lt;P&gt;Hi Msivill,&lt;/P&gt;

&lt;P&gt;Thanks a lot, now I get data into the Line Chart from the two different .txt files.&lt;/P&gt;

&lt;P&gt;I already tested with more .txt files, reading from them a PING -t from other locations, in Real Time and works without issues.&lt;/P&gt;

&lt;P&gt;Maybe you could help, how to change the "Legend" of the two files that shows in the Line Chart, to a custom "Legend".&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;BR /&gt;
JP  &lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 23:55:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385171#M112473</guid>
      <dc:creator>pascoaljo</dc:creator>
      <dc:date>2018-09-18T23:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385172#M112474</link>
      <description>&lt;P&gt;Have you got a picture to show what you currently have?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 06:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385172#M112474</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-09-19T06:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385173#M112475</link>
      <description>&lt;P&gt;Hi Msivill&lt;/P&gt;

&lt;P&gt;I can't find here, where to upload a screenshot.&lt;BR /&gt;
But I can send you, if you send me the contact.&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;

&lt;P&gt;Kind regards&lt;BR /&gt;
JP&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 10:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385173#M112475</guid>
      <dc:creator>pascoaljo</dc:creator>
      <dc:date>2018-09-19T10:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385174#M112476</link>
      <description>&lt;P&gt;Can you edit the original question to add it there? It looks like I can add an image that is already up on the internet in this comment, but that won't help. A visual helps me get my head around the problem quicker. What text is currently appearing in the legend?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 11:04:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385174#M112476</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-09-19T11:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385175#M112477</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5813i4A1848DBD3F1BCBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 17:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385175#M112477</guid>
      <dc:creator>pascoaljo</dc:creator>
      <dc:date>2018-09-19T17:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385176#M112478</link>
      <description>&lt;P&gt;One option could be to rename the fields after the averages has been calculated&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (host=jp) source="/home/jp/pings/targets/googledns.txt" OR source="/home/jp/pings/targets/defaultGateway.txt"
| timechart avg(time) by source
| rename /home/jp/pings/targets/googledns.txt as "Google DNS", /home/jp/pings/targets/defaultGateway.txt as "Default Gateway"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Sep 2018 07:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385176#M112478</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-09-20T07:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385177#M112479</link>
      <description>&lt;P&gt;Hi Misvill,&lt;/P&gt;

&lt;P&gt;I got an error with the script you provided, but with a small change, it works:&lt;/P&gt;

&lt;P&gt;(host=jp) source="/home/jp/pings/targets/googledns.txt" OR source="/home/jp/pings/targets/defaultGateway.txt"&lt;BR /&gt;
 | timechart avg(time) by source&lt;BR /&gt;
 | rename /home/jp/pings/targets/googledns.txt as "Google DNS" | /home/jp/pings/targets/defaultGateway.txt as "Default Gateway" &lt;/P&gt;

&lt;P&gt;If is not asking to much....&lt;/P&gt;

&lt;P&gt;Could you please help, to get the same color in the charts, below the line chart... each one with the color of the line, in the Line Chart&lt;/P&gt;

&lt;P&gt;Thank you for you're kind support.&lt;/P&gt;

&lt;P&gt;Best regards&lt;BR /&gt;
JP&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385177#M112479</guid>
      <dc:creator>pascoaljo</dc:creator>
      <dc:date>2018-09-20T16:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385178#M112480</link>
      <description>&lt;P&gt;Can you please accept the answer which has been done as ask the additional question as new question?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385178#M112480</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-09-20T16:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a search string to get Real Time data from multiple *.txt files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385179#M112481</link>
      <description>&lt;P&gt;You haven't accepted my answer. You've accepted your own with the screenshot.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 17:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-make-a-search-string-to-get-Real-Time-data-from/m-p/385179#M112481</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-09-20T17:22:08Z</dc:date>
    </item>
  </channel>
</rss>

