<?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: Give complete log output on search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336139#M175281</link>
    <description>&lt;P&gt;You'll have to change your query to something more generic.  Look at the output for the "FooLogs" search and find the index and source fields.  Use them to compose a new query that will return everything in the same source as FooLogs.  For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo source=foo.log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 04 Mar 2017 21:57:17 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2017-03-04T21:57:17Z</dc:date>
    <item>
      <title>Give complete log output on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336138#M175280</link>
      <description>&lt;P&gt;When I do a search, the search results only show the lines of the logs that are matching my query. Is it possible to show the entire log in the search results? For example, if I search for "FooLogs", the results will correctly show all log files that contain "FooLogs", but only show the line that contains those words. I want to know if I can show the entire contents of the log files that contain the search query.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 21:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336138#M175280</guid>
      <dc:creator>YanwuGuTelus</dc:creator>
      <dc:date>2017-03-04T21:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Give complete log output on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336139#M175281</link>
      <description>&lt;P&gt;You'll have to change your query to something more generic.  Look at the output for the "FooLogs" search and find the index and source fields.  Use them to compose a new query that will return everything in the same source as FooLogs.  For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo source=foo.log
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Mar 2017 21:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336139#M175281</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-03-04T21:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Give complete log output on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336140#M175282</link>
      <description>&lt;P&gt;Thanks, I tried this but I am now getting multiple output lines in the search results from the same log file. I want to have one result per log file that has all the content of the file.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 22:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336140#M175282</guid>
      <dc:creator>YanwuGuTelus</dc:creator>
      <dc:date>2017-03-04T22:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Give complete log output on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336141#M175283</link>
      <description>&lt;P&gt;Have a try &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo source=foo.log| reverse | streamstats count(eval(searchmatch("xxxxx"))) AS xyz | reverse | stats list(_raw) AS wholeLogFile by xyz| table wholeLogFile 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;An example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source="/opt/splunk/var/log/splunk/scheduler.log"| reverse | streamstats count(eval(searchmatch("xxxxx"))) AS xyz | reverse | stats list(_raw) AS wholeLogFile by xyz| table wholeLogFile 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Mar 2017 23:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336141#M175283</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-03-04T23:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Give complete log output on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336142#M175284</link>
      <description>&lt;P&gt;That wasn't clear from your question.  koshyk's answer should do it.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 01:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336142#M175284</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-03-05T01:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Give complete log output on search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336143#M175285</link>
      <description>&lt;P&gt;It works, but the email i sent to my self started with a figure. how can i get rid of the figure at very beginning?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 22:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Give-complete-log-output-on-search/m-p/336143#M175285</guid>
      <dc:creator>YanwuGuTelus</dc:creator>
      <dc:date>2017-03-09T22:04:48Z</dc:date>
    </item>
  </channel>
</rss>

