<?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 Merging data from multiple events into a single field in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Merging-data-from-multiple-events-into-a-single-field/m-p/90146#M2075</link>
    <description>&lt;P&gt;I want to merge data from multiple splunk events into a single field value - does anyone know how?&lt;BR /&gt;
As an example, lets say we have antivirus data events which contain host name and the virus name. I can do a search to return all of the signatures for a specific host. My goal is to merge those signatures. &lt;/P&gt;

&lt;P&gt;where the raw records (simplified) might be:&lt;BR /&gt;
 system_1, virus_a&lt;BR /&gt;
system_1, virus_b&lt;BR /&gt;
system_1, virus_c&lt;BR /&gt;
system_2, virus_b&lt;/P&gt;

&lt;P&gt;I want my output to be:&lt;BR /&gt;
dest=system_1, infections="virus_a, virus_b, virus_c"&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:30:07 GMT</pubDate>
    <dc:creator>tchmielarski</dc:creator>
    <dc:date>2020-09-28T09:30:07Z</dc:date>
    <item>
      <title>Merging data from multiple events into a single field</title>
      <link>https://community.splunk.com/t5/Reporting/Merging-data-from-multiple-events-into-a-single-field/m-p/90146#M2075</link>
      <description>&lt;P&gt;I want to merge data from multiple splunk events into a single field value - does anyone know how?&lt;BR /&gt;
As an example, lets say we have antivirus data events which contain host name and the virus name. I can do a search to return all of the signatures for a specific host. My goal is to merge those signatures. &lt;/P&gt;

&lt;P&gt;where the raw records (simplified) might be:&lt;BR /&gt;
 system_1, virus_a&lt;BR /&gt;
system_1, virus_b&lt;BR /&gt;
system_1, virus_c&lt;BR /&gt;
system_2, virus_b&lt;/P&gt;

&lt;P&gt;I want my output to be:&lt;BR /&gt;
dest=system_1, infections="virus_a, virus_b, virus_c"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Merging-data-from-multiple-events-into-a-single-field/m-p/90146#M2075</guid>
      <dc:creator>tchmielarski</dc:creator>
      <dc:date>2020-09-28T09:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merging data from multiple events into a single field</title>
      <link>https://community.splunk.com/t5/Reporting/Merging-data-from-multiple-events-into-a-single-field/m-p/90147#M2076</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;look for the &lt;STRONG&gt;transaction&lt;/STRONG&gt; command basically adding to you search line:&lt;BR /&gt;
" | transaction dest "&lt;/P&gt;

&lt;P&gt;Don´t forget to include the pipe &lt;/P&gt;

&lt;P&gt;Look on: &lt;A href="http://www.splunk.com/base/Documentation/latest/SearchReference/Transaction"&gt;Transaction definition&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;By the way don't forget to tag your fields!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2011 18:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Merging-data-from-multiple-events-into-a-single-field/m-p/90147#M2076</guid>
      <dc:creator>thinman</dc:creator>
      <dc:date>2011-04-27T18:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Merging data from multiple events into a single field</title>
      <link>https://community.splunk.com/t5/Reporting/Merging-data-from-multiple-events-into-a-single-field/m-p/90148#M2077</link>
      <description>&lt;P&gt;the answer appears to be |transaction (thanks) plus |mvcombine&lt;BR /&gt;
The delimiter (delim=",") does not show up, and i'm still working on that so the result is more legible but the current result is more or less what I wanted. &lt;/P&gt;

&lt;P&gt;example:&lt;BR /&gt;
.... |transaction dest_host maxspan=7d maxpause=7d | mvcombine delim="," signature &lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2011 20:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Merging-data-from-multiple-events-into-a-single-field/m-p/90148#M2077</guid>
      <dc:creator>tchmielarski</dc:creator>
      <dc:date>2011-04-27T20:40:59Z</dc:date>
    </item>
  </channel>
</rss>

