<?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 Proper execution of subsearch help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540597#M152945</link>
    <description>&lt;P&gt;So here is my existing query as it runs now&lt;/P&gt;&lt;P&gt;sourcetype=snort&lt;BR /&gt;[search sourcetype=snort&amp;nbsp;&lt;BR /&gt;|top limit=20 src| table src]&lt;BR /&gt;| stats count, values(signature) as Sigs by src&lt;BR /&gt;| sort -count&lt;BR /&gt;| lookup dnslookup clientip as src OUTPUT clienthost as DST_RESOLVED&lt;BR /&gt;| iplocation src&lt;BR /&gt;| fields src, count, Country, DST_RESOLVED, Sigs&lt;BR /&gt;| rename src as "Source IP", count as Count, DST_RESOLVED as "DNS Resolution", Sigs as Signatures&lt;/P&gt;&lt;P&gt;I am not the original builder of this query but I am editing it.&lt;/P&gt;&lt;P&gt;these are normalized snort logs. Id like to return the top 20 signatures by source, while displaying source (src), count, country,&amp;nbsp; dns rsolution (dnslookup) and signature (sigs)&lt;/P&gt;&lt;P&gt;There are signatures i want to completely exclude by (sig_id), and then there are signatures i would like to exclude where signature has specific src or cidr range. I seem to be creating unbalanced parenthesis when trying my boolean expressions or Wheres. Please assist&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2021 23:42:04 GMT</pubDate>
    <dc:creator>kelie</dc:creator>
    <dc:date>2021-02-19T23:42:04Z</dc:date>
    <item>
      <title>Proper execution of subsearch help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540597#M152945</link>
      <description>&lt;P&gt;So here is my existing query as it runs now&lt;/P&gt;&lt;P&gt;sourcetype=snort&lt;BR /&gt;[search sourcetype=snort&amp;nbsp;&lt;BR /&gt;|top limit=20 src| table src]&lt;BR /&gt;| stats count, values(signature) as Sigs by src&lt;BR /&gt;| sort -count&lt;BR /&gt;| lookup dnslookup clientip as src OUTPUT clienthost as DST_RESOLVED&lt;BR /&gt;| iplocation src&lt;BR /&gt;| fields src, count, Country, DST_RESOLVED, Sigs&lt;BR /&gt;| rename src as "Source IP", count as Count, DST_RESOLVED as "DNS Resolution", Sigs as Signatures&lt;/P&gt;&lt;P&gt;I am not the original builder of this query but I am editing it.&lt;/P&gt;&lt;P&gt;these are normalized snort logs. Id like to return the top 20 signatures by source, while displaying source (src), count, country,&amp;nbsp; dns rsolution (dnslookup) and signature (sigs)&lt;/P&gt;&lt;P&gt;There are signatures i want to completely exclude by (sig_id), and then there are signatures i would like to exclude where signature has specific src or cidr range. I seem to be creating unbalanced parenthesis when trying my boolean expressions or Wheres. Please assist&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 23:42:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540597#M152945</guid>
      <dc:creator>kelie</dc:creator>
      <dc:date>2021-02-19T23:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proper execution of subsearch help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540603#M152949</link>
      <description>&lt;LI-CODE lang="javascript"&gt;sourcetype=snort
``` There is no need for sub-searching, since you end up searching for everything.```
| stats count, values(signature) as Sigs by src
| sort  20 - count
| lookup dnslookup clientip as src OUTPUT clienthost as DST_RESOLVED
| iplocation src
| fields src, count, Country, DST_RESOLVED, Sigs
| mvexpand Sigs
| search NOT [ | inputlookup Signatures.csv | rename Signatures as Sigs | format ]
``` exclude Sgnatures CSV ```
| rename src as "Source IP", count as Count, DST_RESOLVED as "DNS Resolution", Sigs as Signatures&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 20 Feb 2021 01:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540603#M152949</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-02-20T01:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proper execution of subsearch help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540765#M153040</link>
      <description>&lt;P&gt;could you help me better understand the mvexpands ?&lt;/P&gt;&lt;P&gt;also i wouldnt need to import the signatures from a csv.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kelie_0-1613970180199.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12997i3BFC461D647B5EFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kelie_0-1613970180199.png" alt="kelie_0-1613970180199.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 05:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540765#M153040</guid>
      <dc:creator>kelie</dc:creator>
      <dc:date>2021-02-22T05:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proper execution of subsearch help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540798#M153053</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats count, values(signature) as signature by src&lt;/LI-CODE&gt;&lt;P&gt;This makes signature multi-values.&amp;nbsp; mvexpand separetes them to single rows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It's going to everyone, but I can't make queries without logs.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 09:21:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540798#M153053</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-02-22T09:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proper execution of subsearch help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540906#M153088</link>
      <description>&lt;P&gt;im sorry. i did not have the full query. this is the one as it runs now&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sourcetype=snort&lt;BR /&gt;NOT (signature_id=129:7:1 OR signature_id=124:1:1 OR signature_id=142:1:1 OR signature_id=124:7:1 OR signature_id=129:18:1 OR signature_id=129:8:1)&lt;BR /&gt;[search sourcetype=snort (signature!="(spp_sip)*" (src_ip!=10.10.21.11 AND signature!="*POP3*") AND (src_ip!=10.108.246.111 OR 10.108.243.112 OR 10.108.243.113 OR 10.108.243.114 OR 10.108.243.115 OR 10.108.243.116) AND signature_id!=125:1:1)&lt;BR /&gt;|top limit=20 src| table src]&lt;BR /&gt;| stats count, values(signature) as Sigs by src&lt;BR /&gt;| sort -count&lt;BR /&gt;| lookup dnslookup clientip as src OUTPUT clienthost as DST_RESOLVED&lt;BR /&gt;| iplocation src&lt;BR /&gt;| fields src, count, Country, DST_RESOLVED, Sigs&lt;BR /&gt;| rename src as "Source IP", count as Count, DST_RESOLVED as "DNS Resolution", Sigs as Signatures&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 20:16:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Proper-execution-of-subsearch-help/m-p/540906#M153088</guid>
      <dc:creator>kelie</dc:creator>
      <dc:date>2021-02-22T20:16:02Z</dc:date>
    </item>
  </channel>
</rss>

