<?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 do I create multiple Null values for an existing field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607892#M211365</link>
    <description>&lt;LI-CODE lang="markup"&gt;| append
  [| makeresults
   | eval Risk=split("Critical,High,Medium,Low",",")
   | eval count=0
   | mvexpand Risk]
| stats sum(count) as count by Risk&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 02 Aug 2022 08:56:36 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-08-02T08:56:36Z</dc:date>
    <item>
      <title>How do I create multiple null values for an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607782#M211341</link>
      <description>&lt;P&gt;I have a search that counts&amp;nbsp; the vulnerabilities for a given team&amp;nbsp;and places them on a Bar chart on a dashboard based on the "Risk" field to display how many Critical, High, medium or low events.&lt;/P&gt;
&lt;P&gt;Problem I have is that not all teams have all 4 levels of vulnerabilities so the graphs look a bit rubbish. Some only have one level, others have 3 or 4 and the graphs only show the vulnerabilities that have a value&lt;/P&gt;
&lt;P&gt;I would like to always have Critical, High, Medium AND Low on the x-axis for every team even though the value for these may be Zero.&lt;/P&gt;
&lt;P&gt;For example, if a team has 5 Mediums, the graph only shows one bar.&lt;/P&gt;
&lt;P&gt;How to I create a Bar chart that shows:&lt;/P&gt;
&lt;P&gt;Critical =0&lt;BR /&gt;High=0&lt;BR /&gt;Medium =5&lt;BR /&gt;Low=0&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 16:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607782#M211341</guid>
      <dc:creator>capilarity</dc:creator>
      <dc:date>2022-08-01T16:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create multiple Null values for an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607788#M211343</link>
      <description>&lt;P&gt;You may be able to use the &lt;FONT face="courier new,courier"&gt;fillnull&lt;/FONT&gt; command.&amp;nbsp; However, the way that works best for you depends on how the fields are generated so please share the SPL.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 15:51:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607788#M211343</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-08-01T15:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create multiple Null values for an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607794#M211345</link>
      <description>&lt;P&gt;Does this work for you?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart count by team vulnerability&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Aug 2022 16:21:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607794#M211345</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-01T16:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create multiple Null values for an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607879#M211360</link>
      <description>&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;Each dashboard reports on only one team via a dropdown option on a form, and we are counting the number of Risks per risk level so I've used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;| chart count by Risk&lt;/P&gt;&lt;P&gt;From the example data I posted, this command produces the same result. I need some way of defining all 4 risk levels even though there count is zero&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 08:04:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607879#M211360</guid>
      <dc:creator>capilarity</dc:creator>
      <dc:date>2022-08-02T08:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create multiple Null values for an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607887#M211363</link>
      <description>&lt;P&gt;I have tried to use the fillnull command, but with no success.&lt;/P&gt;&lt;P&gt;Each vulnerability record contains an identifier (ID) and a risk level (Risk)&amp;nbsp;&lt;/P&gt;&lt;P&gt;The graph needs to show the number of each risk level where the vulnerability identifier (ID) has been reported for more than 4 weeks so the spl is:&lt;/P&gt;&lt;P&gt;team=&lt;EM&gt;teamname&lt;/EM&gt; | stats count AS weeks by ID, Risk | where weeks&amp;gt;4 | chart count by Risk&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 08:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607887#M211363</guid>
      <dc:creator>capilarity</dc:creator>
      <dc:date>2022-08-02T08:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create multiple Null values for an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607892#M211365</link>
      <description>&lt;LI-CODE lang="markup"&gt;| append
  [| makeresults
   | eval Risk=split("Critical,High,Medium,Low",",")
   | eval count=0
   | mvexpand Risk]
| stats sum(count) as count by Risk&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Aug 2022 08:56:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607892#M211365</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-02T08:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create multiple Null values for an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607893#M211366</link>
      <description>&lt;P&gt;PERFECT!!!&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 08:59:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607893#M211366</guid>
      <dc:creator>capilarity</dc:creator>
      <dc:date>2022-08-02T08:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create multiple Null values for an existing field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607894#M211367</link>
      <description>&lt;P&gt;I am curious: If you are displaying bar charts for all these teams, why the chart command only groups by Risk?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart over team by Risk&lt;/LI-CODE&gt;&lt;P&gt;should populate 0 into teams where that particular Risk level is missing. &amp;nbsp;If you want teams to chart separately, you can use trellis in visualization, and split by team.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 09:09:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-create-multiple-null-values-for-an-existing-field/m-p/607894#M211367</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-08-02T09:09:11Z</dc:date>
    </item>
  </channel>
</rss>

