<?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 include entire source file in an alert? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-include-entire-source-file-in-an-alert/m-p/136119#M2200</link>
    <description>&lt;P&gt;Please "Accept" the answer.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2015 16:18:20 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-06-04T16:18:20Z</dc:date>
    <item>
      <title>How to include entire source file in an alert?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-include-entire-source-file-in-an-alert/m-p/136116#M2197</link>
      <description>&lt;P&gt;I have an application that generates logs that are not always in a consistent format. Also each time a process in this application executes it creates a whole new log file for that one execution.&lt;/P&gt;

&lt;P&gt;Thanks to @woodcock, I can get every event in a source file that triggered an alert. I then merge all of these event into a single field with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;error* OR fail* OR exception OR warn* | dedup source | map search="search source=$source$" | reverse | eval LOG=_raw | fields host, source, LOG | mvcombine LOG | table host, source, LOG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem I am having now is, if I initially get results from more than one source, they seem to get merged together in the LOG field. How can I either mvcombine only the events for their respective sources, or show the entire log file?&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 15:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-include-entire-source-file-in-an-alert/m-p/136116#M2197</guid>
      <dc:creator>jwinderDDS</dc:creator>
      <dc:date>2015-06-04T15:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to include entire source file in an alert?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-include-entire-source-file-in-an-alert/m-p/136117#M2198</link>
      <description>&lt;P&gt;I think you are looking for this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;error* OR fail* OR exception OR warn* | dedup source | map search="search source=$source$" | reverse | stats list(_raw) AS LOGS BY host, source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2015 15:48:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-include-entire-source-file-in-an-alert/m-p/136117#M2198</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-04T15:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to include entire source file in an alert?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-include-entire-source-file-in-an-alert/m-p/136118#M2199</link>
      <description>&lt;P&gt;That is exactly what I've been trying to produce, with one exception. It truncates one of our longer log files because we are hitting the 1000 byte field size limit. However, this may be "good enough" for our purposes.&lt;/P&gt;

&lt;P&gt;Thank you again!&lt;/P&gt;

&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 16:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-include-entire-source-file-in-an-alert/m-p/136118#M2199</guid>
      <dc:creator>jwinderDDS</dc:creator>
      <dc:date>2015-06-04T16:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to include entire source file in an alert?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-include-entire-source-file-in-an-alert/m-p/136119#M2200</link>
      <description>&lt;P&gt;Please "Accept" the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 16:18:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-include-entire-source-file-in-an-alert/m-p/136119#M2200</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-04T16:18:20Z</dc:date>
    </item>
  </channel>
</rss>

