<?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: Two fields are not populating, not sure why in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350421#M159526</link>
    <description>&lt;P&gt;In the first stats between stats and sum&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2017 16:29:44 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-08-03T16:29:44Z</dc:date>
    <item>
      <title>Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350417#M159522</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;For some reason my SEVERITY, and CATEGORY field aren't showing any value..&lt;/P&gt;

&lt;P&gt;Can anyone see why?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=nessus cve=*  
| eval ID=coalesce(id,plugin_id) 
| eval CVSS_SCORE = cvss_base_score + cvss_temporal_score
| rename cve as CVE, family_name as CATEGORY, risk_factor as SEVERITY
| stats sum(CVSS_SCORE) as CVSS_SCORE values(plugin_name) as Plugin_Name by ID
| appendcols 
    [ search index=nessus 
    | rename host-ip as hostip 
    | stats list(hostip) as hostips, list(IP) as IP, count(hostip) as HOSTS by plugin_id
    ] 
| rename Plugin_Name as TITLE
| eval Systemic_Score = CVSS_SCORE*HOSTS
| table ID, SEVERITY, TITLE, CATEGORY, CVSS_SCORE, HOSTS, plugin_id, Systemic_Score
| sort - Systemic_Score
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Aug 2017 14:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350417#M159522</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-08-03T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350418#M159523</link>
      <description>&lt;P&gt;Does not family_name and risk_factor fields got extracted  from events. Are you seeing those two fields in interesting fields section. Also executed below query and it should output some values,&lt;/P&gt;

&lt;P&gt;index=nessus cve=* | table family_name risk_factor&lt;/P&gt;

&lt;P&gt;if not producing any results. Then extract those two fields.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350418#M159523</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350419#M159524</link>
      <description>&lt;P&gt;Hi rkaakaty,&lt;BR /&gt;
after a stats command you have only fields of stats so after your first stats you have CVSS_SCORE, Plugin_Name and ID, after you add (with append command) hostips, IP, and plugin_id.&lt;BR /&gt;
SEVERITY and CATEGORY aren't in stats commands, add &lt;CODE&gt;values(SEVERITY) AS SEVERITY values(CATEGORY) AS CATEGORY&lt;/CODE&gt; to the first stats command.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:12:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350419#M159524</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T15:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350420#M159525</link>
      <description>&lt;P&gt;Can you show me how you added it to my code?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 16:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350420#M159525</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-08-03T16:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350421#M159526</link>
      <description>&lt;P&gt;In the first stats between stats and sum&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 16:29:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350421#M159526</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-08-03T16:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350422#M159527</link>
      <description>&lt;P&gt;I don't understand&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 19:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350422#M159527</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-08-03T19:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350423#M159528</link>
      <description>&lt;P&gt;updated to mark as code.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;appendcols&lt;/CODE&gt; in that location does't seem like it's going to work right.  &lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 00:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350423#M159528</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-04T00:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350424#M159529</link>
      <description>&lt;P&gt;Hi rkaakaty,&lt;BR /&gt;
try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=nessus cve=*  
 | eval ID=coalesce(id,plugin_id) 
 | eval CVSS_SCORE = cvss_base_score + cvss_temporal_score
 | rename cve as CVE, family_name as CATEGORY, risk_factor as SEVERITY
 | stats values(SEVERITY) AS SEVERITY values(CATEGORY) AS CATEGORY sum(CVSS_SCORE) as CVSS_SCORE values(plugin_name) as Plugin_Name by ID
 | appendcols 
     [ search index=nessus 
     | rename host-ip as hostip 
     | stats list(hostip) as hostips, list(IP) as IP, count(hostip) as HOSTS by plugin_id
     ] 
 | rename Plugin_Name as TITLE
 | eval Systemic_Score = CVSS_SCORE*HOSTS
 | table ID, SEVERITY, TITLE, CATEGORY, CVSS_SCORE, HOSTS, plugin_id, Systemic_Score
 | sort - Systemic_Score
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 07:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350424#M159529</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-08-04T07:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350425#M159530</link>
      <description>&lt;P&gt;See now that fixed my category and severity field, but now my HOSTS, Systemic_Score, and plugin_id aren't populating&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:14:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350425#M159530</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2020-09-29T15:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350426#M159531</link>
      <description>&lt;P&gt;if these fields are in the nessus index probably there is the same problem, try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nessus cve=*  
| eval ID=coalesce(id,plugin_id) 
| eval CVSS_SCORE = cvss_base_score + cvss_temporal_score
| rename cve as CVE, family_name as CATEGORY, risk_factor as SEVERITY
| stats values(SEVERITY) AS SEVERITY values(CATEGORY) AS CATEGORY 
values(HOSTS) AS HOSTS values(Systemic_Score) AS Systemic_Score values(plugin_id) AS plugin_id sum(CVSS_SCORE) as CVSS_SCORE values(plugin_name) as Plugin_Name by ID
| appendcols 
      [ search index=nessus 
      | rename host-ip as hostip 
      | stats list(hostip) as hostips, list(IP) as IP, count(hostip) as HOSTS by plugin_id
      ] 
| rename Plugin_Name as TITLE
| eval Systemic_Score = CVSS_SCORE*HOSTS
| table ID, SEVERITY, TITLE, CATEGORY, CVSS_SCORE, HOSTS, plugin_id, Systemic_Score
| sort - Systemic_Score
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 15:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350426#M159531</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-08-04T15:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350427#M159532</link>
      <description>&lt;P&gt;I still have the same problem... i'm not sure why&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 15:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350427#M159532</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-08-04T15:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Two fields are not populating, not sure why</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350428#M159533</link>
      <description>&lt;P&gt;if you run your search until the first rename (before first stats), do you have all the wanted  fields?&lt;/P&gt;

&lt;P&gt;What is the meaning of appendcols? &lt;BR /&gt;
remeber that (from &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.2/SearchReference/Appendcols"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.2/SearchReference/Appendcols&lt;/A&gt; ) "The first subsearch result is merged with the first main result, the second subsearch result is merged with the second main result, and so on."&lt;/P&gt;

&lt;P&gt;What information do you want to add to the first stats results?&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 15:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Two-fields-are-not-populating-not-sure-why/m-p/350428#M159533</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-08-04T15:27:35Z</dc:date>
    </item>
  </channel>
</rss>

