<?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 can i concatenate values from separate logs? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-concatenate-values-from-separate-logs/m-p/75044#M18963</link>
    <description>&lt;P&gt;woohoo! worked a treat; thanks Stephen!&lt;/P&gt;

&lt;P&gt;to extend the question a little; &lt;/P&gt;

&lt;P&gt;1) what if i wanted to also include the interfaces seen on the host? i have a multivalue field called 'int' such that i would like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mac_address  seen_on
dvc_mac      hostA (intA1, intA2), hostB (intB1, intB2)...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) if i wanted a frequency count of each dvc_mac&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mac_address  seen_on                  count
dvc_mac      hostA (intA1, intA2)...  4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers,&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2011 01:06:55 GMT</pubDate>
    <dc:creator>ytl</dc:creator>
    <dc:date>2011-04-07T01:06:55Z</dc:date>
    <item>
      <title>how can i concatenate values from separate logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-concatenate-values-from-separate-logs/m-p/75042#M18961</link>
      <description>&lt;P&gt;i'm trying to generate a search where i can summarize its info into a table. specifically i'm trying to detect link flapping caused by hosts having the same mac address across many/same switches.&lt;/P&gt;

&lt;P&gt;in the logs i get one entry for each occurrence, sometimes its across different hosts; so i group the logs with a transaction on the dvc_mac (which i have set up as a field extraction):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"is flapping between port" | transaction dvc_mac
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;what i would like is a table where i can concatenate all the hosts seen for that single dvc_mac address, eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mac_address  seen_on
dvc_mac      host1, host2...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;is this possible?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2011 01:51:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-concatenate-values-from-separate-logs/m-p/75042#M18961</guid>
      <dc:creator>ytl</dc:creator>
      <dc:date>2011-04-06T01:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: how can i concatenate values from separate logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-concatenate-values-from-separate-logs/m-p/75043#M18962</link>
      <description>&lt;P&gt;I think that you can do this more simply using &lt;CODE&gt;stats&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"is flapping between port" | stats values(host) as seen_on by dvc_mac
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2011 01:56:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-concatenate-values-from-separate-logs/m-p/75043#M18962</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2011-04-06T01:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: how can i concatenate values from separate logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-concatenate-values-from-separate-logs/m-p/75044#M18963</link>
      <description>&lt;P&gt;woohoo! worked a treat; thanks Stephen!&lt;/P&gt;

&lt;P&gt;to extend the question a little; &lt;/P&gt;

&lt;P&gt;1) what if i wanted to also include the interfaces seen on the host? i have a multivalue field called 'int' such that i would like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mac_address  seen_on
dvc_mac      hostA (intA1, intA2), hostB (intB1, intB2)...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) if i wanted a frequency count of each dvc_mac&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mac_address  seen_on                  count
dvc_mac      hostA (intA1, intA2)...  4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2011 01:06:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-concatenate-values-from-separate-logs/m-p/75044#M18963</guid>
      <dc:creator>ytl</dc:creator>
      <dc:date>2011-04-07T01:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: how can i concatenate values from separate logs?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-i-concatenate-values-from-separate-logs/m-p/75045#M18964</link>
      <description>&lt;P&gt;It's hard for me to read the structure of this in comment form. Ask another question, add a link to it and we'll address it there.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2011 08:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-i-concatenate-values-from-separate-logs/m-p/75045#M18964</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2011-04-07T08:39:42Z</dc:date>
    </item>
  </channel>
</rss>

