<?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: Extract 2 values from different events based on another 2 common fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-2-values-from-different-events-based-on-another-2/m-p/618705#M215035</link>
    <description>&lt;LI-CODE lang="markup"&gt;| stats values(vlan) as vlan values(L2ipaddress) as L2ipaddress by _time user
| stats values(vlan) as vlan by L2ipaddress
| eval vlan=mvjoin(vlan,",")&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 28 Oct 2022 09:45:18 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-10-28T09:45:18Z</dc:date>
    <item>
      <title>How to extract 2 values from different events based on another 2 common fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-2-values-from-different-events-based-on-another-2/m-p/618703#M215033</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm new here, tried to find the answer for my problem by failed. I'm looking for a method to extract values from 2 different events. These events have some common fileds but I'm not interested in them being part of output.&lt;/P&gt;
&lt;P&gt;My events have following fields (there are more, but these I would like to operate on):&lt;/P&gt;
&lt;P&gt;EventID=10001&lt;/P&gt;
&lt;P&gt;time=_time&lt;/P&gt;
&lt;P&gt;user=mike&lt;/P&gt;
&lt;P&gt;vlan=mikevlan&lt;/P&gt;
&lt;P&gt;EventID=10002&lt;/P&gt;
&lt;P&gt;time=_time&lt;/P&gt;
&lt;P&gt;user=mike&lt;/P&gt;
&lt;P&gt;L2ipaddress=1.2.3.4&lt;/P&gt;
&lt;P&gt;What I'm looking at as a result is a table with a combined results from vlan and L2ipaddress columns for which user and time matches then I need to have a list of all vlans grouped by L2ipaddress&lt;/P&gt;
&lt;P&gt;1.2.3.4|mikevlan,tomvlan,anavlan&lt;/P&gt;
&lt;P&gt;1.2.3.5|brianvlan,evevlan&lt;BR /&gt;etc&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 14:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-2-values-from-different-events-based-on-another-2/m-p/618703#M215033</guid>
      <dc:creator>BYQ</dc:creator>
      <dc:date>2022-10-28T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract 2 values from different events based on another 2 common fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-2-values-from-different-events-based-on-another-2/m-p/618705#M215035</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats values(vlan) as vlan values(L2ipaddress) as L2ipaddress by _time user
| stats values(vlan) as vlan by L2ipaddress
| eval vlan=mvjoin(vlan,",")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Oct 2022 09:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-2-values-from-different-events-based-on-another-2/m-p/618705#M215035</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-28T09:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract 2 values from different events based on another 2 common fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-2-values-from-different-events-based-on-another-2/m-p/618713#M215039</link>
      <description>&lt;P&gt;ITWhisperer - wow! that worked. And the solution is even easier than I thought. I'm greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 10:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-2-values-from-different-events-based-on-another-2/m-p/618713#M215039</guid>
      <dc:creator>BYQ</dc:creator>
      <dc:date>2022-10-28T10:53:36Z</dc:date>
    </item>
  </channel>
</rss>

