<?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: Problem with values/list in subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236893#M70391</link>
    <description>&lt;P&gt;Thank you for your reply. The result of this search line is pretty interesting because some of them are separated while some of them aren't. I have no idea how this happens but still thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2015 06:45:30 GMT</pubDate>
    <dc:creator>LuiesCui</dc:creator>
    <dc:date>2015-09-28T06:45:30Z</dc:date>
    <item>
      <title>Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236885#M70383</link>
      <description>&lt;P&gt;Hi guys, I want to make a table with list in it with Splunk and I really need some help!&lt;BR /&gt;
I got a IPS to analyse and to see which source ips some certain attacks were from. When I get an ipA from attackA, I would like to how many times ipA did the attackA, which destiny ips are influnced and by how many times, and is there any other attacks ipA does.&lt;BR /&gt;
Here is my search line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="security" attName="$some certain attack name$"             
| stats count as c by src attName des     
| stats sum(c) as total list(des) as desips list(c) as LC by src
| join src [ search index="security"   
| stats values(attName) as otherAttack by src ]
| table src total desips LC otherAttack  
| sort -total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The table I expect to get is like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     src    total    desips     LC   otherAttack
14.18.240.6   18  172.25.118.53  1  Adobe Reader And Acrobat Privilege Escalation Vulnerability
                  172.26.67.198  5  Microsoft Windows HTTP Services Integer Underflow Vulnerability
                  172.26.68.201  8
                  172.26.69.46   2
                  172.26.71.193  2

14.18.256.74  6   172.25.118.43  1  Adobe Reader And Acrobat Privilege Escalation Vulnerability
                  172.26.68.208  2
                  172.26.71.193  3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But what I really got was like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     src    total    desips     LC   otherAttack
14.18.240.6   18  172.25.118.53  1  Adobe Reader And Acrobat Privilege Escalation Vulnerability Microsoft Windows HTTP Services Integer Underflow Vulnerability
                  172.26.67.198  5       
                  172.26.68.201  8
                  172.26.69.46   2
                  172.26.71.193  2

14.18.256.74  6   172.25.118.43  1  Adobe Reader And Acrobat Privilege Escalation Vulnerability
                  172.26.68.208  2
                  172.26.71.193  3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I found that if I put values/list in a subsearch, the values of the field values/list will be all put in one row.  I tried "&lt;EM&gt;| stats delim="/n" values(attName) as otherAttack by src&lt;/EM&gt;" and didn't work. How can we separate them in different lines in one cell?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236885#M70383</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-09-22T07:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236886#M70384</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="security" attName="$some certain attack name$" | stats count as c by src attName des | stats sum(c) as total list(des) as desips list(c) as LC by src | join src [ search index="security" | stats values(attName) as otherAttack by src | mvexpand otherAttack ] | table src total desips LC otherAttack | sort -total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Sep 2015 15:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236886#M70384</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-22T15:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236887#M70385</link>
      <description>&lt;P&gt;Give this a stry&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="security" attName="$some certain attack name$"             
 | stats count as c by src attName des     
 | stats sum(c) as total list(des) as desips list(c) as LC by src
 | join src [ search index="security"   
 | stats values(attName) as otherAttack by src ]
| stats values(*) as * by src | table src total desips LC otherAttack | sort -total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Sep 2015 15:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236887#M70385</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-22T15:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236888#M70386</link>
      <description>&lt;P&gt;Thank you for your reply but it doesn't work. "Microsoft Windows HTTP Services Integer Underflow Vulnerability" just disappeared.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 01:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236888#M70386</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-09-24T01:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236889#M70387</link>
      <description>&lt;P&gt;Thank you for your reply but it doesn't work. The otherAttack column remains the same and some values of LC column gone.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 01:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236889#M70387</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-09-24T01:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236890#M70388</link>
      <description>&lt;P&gt;Can anybody help please?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236890#M70388</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-09-24T09:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236891#M70389</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="security" attName="$some certain attack name$"             
 | stats count as c by src attName des     
 | stats sum(c) as total list(des) as desips list(c) as LC by src
 | join src [ search index="security" 
 | eval attName="&amp;lt;Delimit&amp;gt;"+attName
 | stats values(attName) as otherAttack by src ]
 | eval otherAttack=split(otherAttack,"&amp;lt;Delimit&amp;gt;")
 | table src total desips LC otherAttack  
 | sort -total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;※”Delimit”, please replace any character.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 06:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236891#M70389</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2015-09-28T06:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236892#M70390</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="security" 
| eventstats values(attName) as att by src
| where attName="$some certain attack name$"
| stats count as c by src attName des att
| stats values(att) as atts by src attName des c
| stats sum(c) as total list(des) as desips  list(c) as LC values(atts) as otherAttack by src
| table src total desips LC otherAttack  
| sort -total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Solved by this search line without using "join".&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 06:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236892#M70390</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-09-28T06:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236893#M70391</link>
      <description>&lt;P&gt;Thank you for your reply. The result of this search line is pretty interesting because some of them are separated while some of them aren't. I have no idea how this happens but still thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 06:45:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236893#M70391</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-09-28T06:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with values/list in subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236894#M70392</link>
      <description>&lt;P&gt;I see. "Delimit" cannot be replaced by ";", but "!","+","-",","and"."works!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 07:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Problem-with-values-list-in-subsearch/m-p/236894#M70392</guid>
      <dc:creator>LuiesCui</dc:creator>
      <dc:date>2015-09-28T07:05:16Z</dc:date>
    </item>
  </channel>
</rss>

