<?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: Unknown search command 'isnull' in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529786#M149663</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228821"&gt;@sakanet&lt;/a&gt;&amp;nbsp; I have "approximately" edited your query, still lot of editings needed I think.&amp;nbsp; (this tip will be useful to you.... you can copy paste your search query into splunk search bar and press "Ctrl and \", which will format your search query in a readable style..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=utexas-chomp (app=TENABLE event=INTEL OR event=VULN family_type!="compliance"severity_name=* NOT hasBeenMitigated=1) OR (app=SCAVENGER event=INTEL OR event=VULN scan_net=ots_network OR scan_net=cluster_network) OR (app=BITSIGHT_FINDINGS event=INTEL OR event=VULN affects_rating="True" grade!=GOOD grade!=NEUTRAL) earliest=-7d 
| eval severity_name=if(app=="BITSIGHT_FINDINGS","seen from bitsight(!!!)",severity_name) 
| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), remediations_message, pluginName) 
| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), details_message, pluginName) 
| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), infection_family, pluginName) 
| eval pluginName=if(app=="BITSIGHT_FINDINGS", "BITSIGHT_" + pluginName, pluginName) 
| eval pluginID=if(app=="BITSIGHT_FINDINGS", pluginName,pluginID) 
| eval pluginText=if(app=="BITSIGHT_FINDINGS",_raw,pluginText) 
| eval severity_id=if(app=="BITSIGHT_FINDINGS",1,severity_id) 
| eval host_seen_from_bitsight=if(app=="BITSIGHT_FINDINGS",1,0) 
| eval severity_name=if(app=="SCAVENGER" AND scan_net="ots_network","seen from internet (!!!)",severity_name) 
| eval pluginID=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginID) 
| eval pluginName=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginName) 
| eval pluginText=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginText) 
| eval severity_id=if(app=="SCAVENGER" AND scan_net="ots_network",1,severity_id) 
| eval host_seen_from_internet=if(app=="SCAVENGER" AND scan_net=="ots_network",1,0) 
| eval severity_name=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen from campus (!)",severity_name) 
| eval pluginID=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginID) 
| eval pluginName=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginName) 
| eval pluginText=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginText) 
| eval severity_id=if(app=="SCAVENGER" AND scan_net=="cluster_network" ,1,severity_id) 
| eval host_seen_from_campus=if(app=="SCAVENGER" AND scan_net=="cluster_network",1,0) 
| extract pairdelim=" ,", kvdelim="=", auto=f, limit=500000, maxchars=1204800 mv_add=f 
| rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)" 
| where severity_id &amp;gt; 0 
| dedup pluginID, srcip 
| eventstats sum(host_seen_from_internet) as internet_ports_open
    sum(host_seen_from_campus) as campus_ports_open
    sum(host_seen_from_bitsight) as bitsight_ports_open by port, srcip 
| `tenable_severity` 
| eval last_seen = strftime(_time, "%m/%d/%Y %I:%M:%S %p") 
| rex field=cpe "cpe:/[a-z]:(?&amp;lt;cpe_vendor&amp;gt;[^:]+):(?&amp;lt;cpe_software&amp;gt;[a-z0-9]+)" 
| rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)" 
| eval cpe_vendor = if(pluginName like "seen_from_internet%", "seen_from_internet", cpe_vendor) eventstats count as cpe_count, by cpe_vendor, srcip 
| eval VULNID = if(cpe_count &amp;gt; 4, cpe_count + " " + cpe_vendor + " vulnerabilities", pluginName) 
| eval VULNID = if(isnull(cpe_vendor), pluginName, VULNID) 
| eval wholecpe = cpe_vendor + ":" + cpe_software 
| stats first(dnsName) as fqdn max(severity) as max_severity, values(VULNID) as vulns first(last_seen) as last_seen, values(wholecpe) as vulnerable_software count as vulnerablities
    first(deptcode) as deptcode by srcip 
| eval fqdn = if(fqdn == "" or isnull(fqdn), "Could Not Resolve", fqdn) 
| sort 25 - max_severity&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2020 16:45:55 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2020-11-17T16:45:55Z</dc:date>
    <item>
      <title>Unknown search command 'isnull'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529666#M149615</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying the following search syntax&amp;nbsp;in Splunk to build out a report of our top 25 riskiest systems. But when I run it, I get “&lt;STRONG&gt;Unknown search command 'isnull'&lt;/STRONG&gt;” message.&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=utexas-chomp (app=TENABLE event=INTEL OR event=VULN family_type!="compliance"severity_name=* NOT hasBeenMitigated=1)  OR (app=SCAVENGER event=INTEL OR event=VULN scan_net=ots_network OR scan_net=cluster_network) OR (app=BITSIGHT_FINDINGS  event=INTEL OR event=VULN affects_rating="True" grade!=GOOD grade!=NEUTRAL) earliest=-7d

 

| eval severity_name=if(app=="BITSIGHT_FINDINGS","seen from bitsight

| (!!!)",severity_name) eval pluginName=if(app=="BITSIGHT_FINDINGS" and

| isnull(pluginName), remediations_message, pluginName) eval

| pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName),

| details_message, pluginName) eval

| pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName),

| infection_family, pluginName) eval

| pluginName=if(app=="BITSIGHT_FINDINGS", "BITSIGHT_" + pluginName,

| pluginName) eval pluginID=if(app=="BITSIGHT_FINDINGS", pluginName,

| pluginID) eval pluginText=if(app=="BITSIGHT_FINDINGS",_raw,

| pluginText) eval

| severity_id=if(app=="BITSIGHT_FINDINGS",1,severity_id)

| eval host_seen_from_bitsight=if(app=="BITSIGHT_FINDINGS",1,0)

 

| eval severity_name=if(app=="SCAVENGER" AND

| scan_net="ots_network","seen from internet (!!!)",severity_name) eval

| pluginID=if(app=="SCAVENGER" AND

| scan_net="ots_network","seen_from_internet-"+protocol+port,pluginID)

| eval pluginName=if(app=="SCAVENGER" AND

| scan_net="ots_network","seen_from_internet-"+protocol+port,pluginName)

| eval pluginText=if(app=="SCAVENGER" AND

| scan_net="ots_network","seen_from_internet-"+protocol+port,pluginText)

| eval severity_id=if(app=="SCAVENGER" AND scan_net="ots_network"

| ,1,severity_id) eval host_seen_from_internet=if(app=="SCAVENGER" AND

| scan_net=="ots_network",1,0)

 

| eval severity_name=if(app=="SCAVENGER" AND

| scan_net=="cluster_network","seen from campus (!)",severity_name) eval

| pluginID=if(app=="SCAVENGER" AND

| scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginID

| ) eval pluginName=if(app=="SCAVENGER" AND

| scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginNa

| me) eval pluginText=if(app=="SCAVENGER" AND

| scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginTe

| xt) eval severity_id=if(app=="SCAVENGER" AND

| scan_net=="cluster_network" ,1,severity_id) eval

| host_seen_from_campus=if(app=="SCAVENGER" AND

| scan_net=="cluster_network",1,0)

 

| extract pairdelim=" ,", kvdelim="=", auto=f, limit=500000,

| maxchars=1204800 mv_add=f rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)"

| where severity_id &amp;gt; 0

| dedup pluginID, srcip

| eventstats sum(host_seen_from_internet) as internet_ports_open

| sum(host_seen_from_campus) as campus_ports_open

| sum(host_seen_from_bitsight) as bitsight_ports_open by port, srcip

| `tenable_severity`

 

| eval last_seen = strftime(_time, "%m/%d/%Y %I:%M:%S %p") rex field=cpe

| "cpe:/[a-z]:(?&amp;lt;cpe_vendor&amp;gt;[^:]+):(?&amp;lt;cpe_software&amp;gt;[a-z0-9]+)"

| rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)"

| eval cpe_vendor = if(pluginName like "seen_from_internet%",

| "seen_from_internet", cpe_vendor) eventstats count as cpe_count, by

| cpe_vendor, srcip eval VULNID = if(cpe_count &amp;gt; 4, cpe_count + " " +

| cpe_vendor + " vulnerabilities", pluginName) eval VULNID =

| if(isnull(cpe_vendor), pluginName, VULNID)

 

| eval wholecpe = cpe_vendor + ":" + cpe_software

 

| stats first(dnsName) as fqdn max(severity) as max_severity 

| values(VULNID) as vulns first(last_seen) as last_seen, 

| values(wholecpe) as vulnerable_software count as vulnerablities

| first(deptcode) as deptcode by srcip eval fqdn = if(fqdn == "" or

| isnull(fqdn), "Could Not Resolve", fqdn)

 

| sort 25 - max_severity&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Nov 2020 09:56:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529666#M149615</guid>
      <dc:creator>sakanet</dc:creator>
      <dc:date>2020-11-17T09:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown search command 'isnull'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529669#M149617</link>
      <description>&lt;P&gt;Please use code sample (&amp;lt;/&amp;gt;) for search snippets for better readability.&lt;/P&gt;&lt;P&gt;Are those pipe( | ) symbols in each line part of your search ? If yes, your search is wrongly formatted and the search terms are wrongly placed.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 05:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529669#M149617</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-11-17T05:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown search command 'isnull'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529778#M149657</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;renjith_nair,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I just signed up last night and posted this question, I swear I did not see all the formatting tools, it was late at night, maybe I just missed them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This code was given to me by someone else. I am very new to this, I will try to reach out to him and see if he can help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 15:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529778#M149657</guid>
      <dc:creator>sakanet</dc:creator>
      <dc:date>2020-11-17T15:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown search command 'isnull'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529784#M149661</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228821"&gt;@sakanet&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its difficult and confusing to edit/update your query(the "|" are misplaced ).. so lets do this step by step..&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the format of the "isnull" command(isnull always works inside the "eval")&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval VULNID = if(isnull(cpe_vendor), pluginName, VULNID)&lt;/LI-CODE&gt;&lt;P&gt;now, you can edit your query accordingly and then copy paste the query, then, we will edit/correct the typing issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;isnull documentation -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.0/SearchReference/InformationalFunctions#isnull.28X.29" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.0/SearchReference/InformationalFunctions#isnull.28X.29&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 16:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529784#M149661</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-11-17T16:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown search command 'isnull'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529786#M149663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/228821"&gt;@sakanet&lt;/a&gt;&amp;nbsp; I have "approximately" edited your query, still lot of editings needed I think.&amp;nbsp; (this tip will be useful to you.... you can copy paste your search query into splunk search bar and press "Ctrl and \", which will format your search query in a readable style..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=utexas-chomp (app=TENABLE event=INTEL OR event=VULN family_type!="compliance"severity_name=* NOT hasBeenMitigated=1) OR (app=SCAVENGER event=INTEL OR event=VULN scan_net=ots_network OR scan_net=cluster_network) OR (app=BITSIGHT_FINDINGS event=INTEL OR event=VULN affects_rating="True" grade!=GOOD grade!=NEUTRAL) earliest=-7d 
| eval severity_name=if(app=="BITSIGHT_FINDINGS","seen from bitsight(!!!)",severity_name) 
| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), remediations_message, pluginName) 
| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), details_message, pluginName) 
| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), infection_family, pluginName) 
| eval pluginName=if(app=="BITSIGHT_FINDINGS", "BITSIGHT_" + pluginName, pluginName) 
| eval pluginID=if(app=="BITSIGHT_FINDINGS", pluginName,pluginID) 
| eval pluginText=if(app=="BITSIGHT_FINDINGS",_raw,pluginText) 
| eval severity_id=if(app=="BITSIGHT_FINDINGS",1,severity_id) 
| eval host_seen_from_bitsight=if(app=="BITSIGHT_FINDINGS",1,0) 
| eval severity_name=if(app=="SCAVENGER" AND scan_net="ots_network","seen from internet (!!!)",severity_name) 
| eval pluginID=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginID) 
| eval pluginName=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginName) 
| eval pluginText=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginText) 
| eval severity_id=if(app=="SCAVENGER" AND scan_net="ots_network",1,severity_id) 
| eval host_seen_from_internet=if(app=="SCAVENGER" AND scan_net=="ots_network",1,0) 
| eval severity_name=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen from campus (!)",severity_name) 
| eval pluginID=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginID) 
| eval pluginName=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginName) 
| eval pluginText=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginText) 
| eval severity_id=if(app=="SCAVENGER" AND scan_net=="cluster_network" ,1,severity_id) 
| eval host_seen_from_campus=if(app=="SCAVENGER" AND scan_net=="cluster_network",1,0) 
| extract pairdelim=" ,", kvdelim="=", auto=f, limit=500000, maxchars=1204800 mv_add=f 
| rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)" 
| where severity_id &amp;gt; 0 
| dedup pluginID, srcip 
| eventstats sum(host_seen_from_internet) as internet_ports_open
    sum(host_seen_from_campus) as campus_ports_open
    sum(host_seen_from_bitsight) as bitsight_ports_open by port, srcip 
| `tenable_severity` 
| eval last_seen = strftime(_time, "%m/%d/%Y %I:%M:%S %p") 
| rex field=cpe "cpe:/[a-z]:(?&amp;lt;cpe_vendor&amp;gt;[^:]+):(?&amp;lt;cpe_software&amp;gt;[a-z0-9]+)" 
| rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)" 
| eval cpe_vendor = if(pluginName like "seen_from_internet%", "seen_from_internet", cpe_vendor) eventstats count as cpe_count, by cpe_vendor, srcip 
| eval VULNID = if(cpe_count &amp;gt; 4, cpe_count + " " + cpe_vendor + " vulnerabilities", pluginName) 
| eval VULNID = if(isnull(cpe_vendor), pluginName, VULNID) 
| eval wholecpe = cpe_vendor + ":" + cpe_software 
| stats first(dnsName) as fqdn max(severity) as max_severity, values(VULNID) as vulns first(last_seen) as last_seen, values(wholecpe) as vulnerable_software count as vulnerablities
    first(deptcode) as deptcode by srcip 
| eval fqdn = if(fqdn == "" or isnull(fqdn), "Could Not Resolve", fqdn) 
| sort 25 - max_severity&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 16:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529786#M149663</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-11-17T16:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown search command 'isnull'</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529999#M149724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt; ,I really appreciate your time and effort! I tried it and got the following two errors:&lt;/P&gt;&lt;DIV class="alerts search-searchflashmessages"&gt;&lt;DIV class="alert alert-error"&gt;&lt;STRONG&gt;Error in 'eval' command: The expression is malformed.&lt;/STRONG&gt;&lt;DIV class="job-status-container"&gt;&lt;DIV class="shared-jobstatus"&gt;&lt;DIV class="alert alert-error"&gt;&lt;STRONG&gt;The search job has failed due to an error. You may be able view the job in the&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="alert alert-error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="alert alert-error"&gt;Luckily, the person originally gave me this query fixed it. Apparently when it was copied and pasted, it messed up the formatting.&lt;/DIV&gt;&lt;DIV class="alert alert-error"&gt;This is what worked:&lt;/DIV&gt;&lt;DIV class="alert alert-error"&gt;I tried putting the code in &lt;STRONG&gt;&amp;lt;/&amp;gt;&lt;/STRONG&gt; as HTML/XML but when I submit, it says: "&lt;SPAN&gt;Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.&lt;/SPAN&gt;" I am not sure what language you guys select when you share code.)&lt;/DIV&gt;&lt;DIV class="alert alert-error"&gt;--------------------------------------&lt;/DIV&gt;&lt;DIV class="alert alert-error"&gt;&lt;P&gt;index=utexas-chomp (app=TENABLE event=INTEL OR event=VULN family_type!="compliance"severity_name=* NOT hasBeenMitigated=1) OR (app=SCAVENGER event=INTEL OR event=VULN scan_net=ots_network OR scan_net=cluster_network) OR (app=BITSIGHT_FINDINGS event=INTEL OR event=VULN affects_rating="True" grade!=GOOD grade!=NEUTRAL) deptcodegroup=UTEXAS earliest=-7d&lt;/P&gt;&lt;P&gt;| eval severity_name=if(app=="BITSIGHT_FINDINGS","seen from bitsight (!!!)",severity_name)&lt;BR /&gt;| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), remediations_message, pluginName)&lt;BR /&gt;| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), details_message, pluginName)&lt;BR /&gt;| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), infection_family, pluginName)&lt;BR /&gt;| eval pluginName=if(app=="BITSIGHT_FINDINGS", "BITSIGHT_" + pluginName, pluginName)&lt;BR /&gt;| eval pluginID=if(app=="BITSIGHT_FINDINGS", pluginName, pluginID)&lt;BR /&gt;| eval pluginText=if(app=="BITSIGHT_FINDINGS",_raw, pluginText)&lt;BR /&gt;| eval severity_id=if(app=="BITSIGHT_FINDINGS",1,severity_id)&lt;BR /&gt;| eval host_seen_from_bitsight=if(app=="BITSIGHT_FINDINGS",1,0)&lt;/P&gt;&lt;P&gt;| eval severity_name=if(app=="SCAVENGER" AND scan_net="ots_network","seen from internet (!!!)",severity_name)&lt;BR /&gt;| eval pluginID=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginID)&lt;BR /&gt;| eval pluginName=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginName)&lt;BR /&gt;| eval pluginText=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginText)&lt;BR /&gt;| eval severity_id=if(app=="SCAVENGER" AND scan_net="ots_network" ,1,severity_id)&lt;BR /&gt;| eval host_seen_from_internet=if(app=="SCAVENGER" AND scan_net=="ots_network",1,0)&lt;/P&gt;&lt;P&gt;| eval severity_name=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen from campus (!)",severity_name)&lt;BR /&gt;| eval pluginID=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginID)&lt;BR /&gt;| eval pluginName=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginName)&lt;BR /&gt;| eval pluginText=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginText)&lt;BR /&gt;| eval severity_id=if(app=="SCAVENGER" AND scan_net=="cluster_network" ,1,severity_id)&lt;BR /&gt;| eval host_seen_from_campus=if(app=="SCAVENGER" AND scan_net=="cluster_network",1,0)&lt;/P&gt;&lt;P&gt;| extract pairdelim=" ,", kvdelim="=", auto=f, limit=500000, maxchars=1204800 mv_add=f&lt;BR /&gt;| rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)"&lt;BR /&gt;| where severity_id &amp;gt; 0&lt;BR /&gt;| dedup pluginID, srcip&lt;BR /&gt;| eventstats sum(host_seen_from_internet) as internet_ports_open sum(host_seen_from_campus) as campus_ports_open sum(host_seen_from_bitsight) as bitsight_ports_open by port, srcip&lt;BR /&gt;| `tenable_severity`&lt;/P&gt;&lt;P&gt;| eval last_seen = strftime(_time, "%m/%d/%Y %I:%M:%S %p")&lt;BR /&gt;| rex field=cpe "cpe:/[a-z]:(?&amp;lt;cpe_vendor&amp;gt;[^:]+):(?&amp;lt;cpe_software&amp;gt;[a-z0-9]+)"&lt;BR /&gt;| rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)"&lt;BR /&gt;| eval cpe_vendor = if(pluginName like "seen_from_internet%", "seen_from_internet", cpe_vendor)&lt;BR /&gt;| eventstats count as cpe_count, by cpe_vendor, srcip&lt;BR /&gt;| eval VULNID = if(cpe_count &amp;gt; 4, cpe_count + " " + cpe_vendor + " vulnerabilities", pluginName)&lt;BR /&gt;| eval VULNID = if(isnull(cpe_vendor), pluginName, VULNID)&lt;/P&gt;&lt;P&gt;| eval wholecpe = cpe_vendor + ":" + cpe_software&lt;/P&gt;&lt;P&gt;| stats first(dnsName) as fqdn max(severity) as max_severity values(VULNID) as vulns first(last_seen) as last_seen, values(wholecpe) as vulnerable_software count as vulnerablities first(deptcode) as deptcode by srcip&lt;BR /&gt;| eval fqdn = if(fqdn == "" or isnull(fqdn), "Could Not Resolve", fqdn)&lt;/P&gt;&lt;P&gt;| sort 25 - max_severity&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=utexas-chomp (app=TENABLE event=INTEL OR event=VULN family_type!="compliance"severity_name=* NOT hasBeenMitigated=1)  OR (app=SCAVENGER event=INTEL OR event=VULN scan_net=ots_network OR scan_net=cluster_network) OR (app=BITSIGHT_FINDINGS  event=INTEL OR event=VULN affects_rating="True" grade!=GOOD grade!=NEUTRAL) deptcodegroup=UTEXAS earliest=-7d

| eval severity_name=if(app=="BITSIGHT_FINDINGS","seen from bitsight (!!!)",severity_name)
| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), remediations_message, pluginName)
| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), details_message, pluginName)
| eval pluginName=if(app=="BITSIGHT_FINDINGS" and isnull(pluginName), infection_family, pluginName)
| eval pluginName=if(app=="BITSIGHT_FINDINGS", "BITSIGHT_" + pluginName, pluginName)
| eval pluginID=if(app=="BITSIGHT_FINDINGS", pluginName, pluginID)
| eval pluginText=if(app=="BITSIGHT_FINDINGS",_raw, pluginText)
| eval severity_id=if(app=="BITSIGHT_FINDINGS",1,severity_id)
| eval host_seen_from_bitsight=if(app=="BITSIGHT_FINDINGS",1,0)

| eval severity_name=if(app=="SCAVENGER" AND scan_net="ots_network","seen from internet (!!!)",severity_name)
| eval pluginID=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginID)
| eval pluginName=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginName)
| eval pluginText=if(app=="SCAVENGER" AND scan_net="ots_network","seen_from_internet-"+protocol+port,pluginText)
| eval severity_id=if(app=="SCAVENGER" AND scan_net="ots_network" ,1,severity_id)
| eval host_seen_from_internet=if(app=="SCAVENGER" AND scan_net=="ots_network",1,0)

| eval severity_name=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen from campus (!)",severity_name)
| eval pluginID=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginID)
| eval pluginName=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginName)
| eval pluginText=if(app=="SCAVENGER" AND scan_net=="cluster_network","seen_from_campus-"+protocol+port,pluginText)
| eval severity_id=if(app=="SCAVENGER" AND scan_net=="cluster_network" ,1,severity_id)
| eval host_seen_from_campus=if(app=="SCAVENGER" AND scan_net=="cluster_network",1,0)

| extract pairdelim=" ,", kvdelim="=", auto=f, limit=500000, maxchars=1204800 mv_add=f
| rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)"
| where severity_id &amp;gt; 0
| dedup pluginID, srcip
| eventstats sum(host_seen_from_internet) as internet_ports_open sum(host_seen_from_campus) as campus_ports_open sum(host_seen_from_bitsight) as bitsight_ports_open by port, srcip
| `tenable_severity`

| eval last_seen = strftime(_time, "%m/%d/%Y %I:%M:%S %p")
| rex field=cpe "cpe:/[a-z]:(?&amp;lt;cpe_vendor&amp;gt;[^:]+):(?&amp;lt;cpe_software&amp;gt;[a-z0-9]+)"
| rex field=pluginText "Credentialed checks : (?&amp;lt;credentialed_checks&amp;gt;[^|]+)"
| eval cpe_vendor = if(pluginName like "seen_from_internet%", "seen_from_internet", cpe_vendor)
| eventstats count as cpe_count, by cpe_vendor, srcip
| eval VULNID = if(cpe_count &amp;gt; 4, cpe_count + " " + cpe_vendor + " vulnerabilities", pluginName)
| eval VULNID = if(isnull(cpe_vendor), pluginName, VULNID)

| eval wholecpe = cpe_vendor + ":" + cpe_software

| stats first(dnsName) as fqdn max(severity) as max_severity  values(VULNID) as vulns first(last_seen) as last_seen,  values(wholecpe) as vulnerable_software count as vulnerablities first(deptcode) as deptcode by srcip
| eval fqdn = if(fqdn == "" or isnull(fqdn), "Could Not Resolve", fqdn)

| sort 25 - max_severity&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 20:35:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unknown-search-command-isnull/m-p/529999#M149724</guid>
      <dc:creator>sakanet</dc:creator>
      <dc:date>2020-11-18T20:35:32Z</dc:date>
    </item>
  </channel>
</rss>

