<?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 How to get empty tag fields? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261853#M30176</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;

&lt;P&gt;I actually create a statistic dashboard to get the "Event Coverage" of each Fields like that :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | stats count(U*) as U* | transpose | rename column AS Property "row 1" AS Count | SORT -Count | eval total=if(Property ="U1708_DOCUMENTTITLE",Count,0) | eventstats sum(total) as ok | eval Percentage=round(Count*100/ok,2) | search Property !="U1708_DOCUMENTTITLE"| table Property Percentage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to also have fields with 0% Event Coverage in my Dashboard (when it's all the time null).&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;/P&gt;

&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2016 08:24:36 GMT</pubDate>
    <dc:creator>yzimmer</dc:creator>
    <dc:date>2016-07-18T08:24:36Z</dc:date>
    <item>
      <title>How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261853#M30176</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;

&lt;P&gt;I actually create a statistic dashboard to get the "Event Coverage" of each Fields like that :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | stats count(U*) as U* | transpose | rename column AS Property "row 1" AS Count | SORT -Count | eval total=if(Property ="U1708_DOCUMENTTITLE",Count,0) | eventstats sum(total) as ok | eval Percentage=round(Count*100/ok,2) | search Property !="U1708_DOCUMENTTITLE"| table Property Percentage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to also have fields with 0% Event Coverage in my Dashboard (when it's all the time null).&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;/P&gt;

&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 08:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261853#M30176</guid>
      <dc:creator>yzimmer</dc:creator>
      <dc:date>2016-07-18T08:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261854#M30177</link>
      <description>&lt;P&gt;You have to insert an eval command for each field you use in your stats like the following:&lt;BR /&gt;
|eval XXX=if(isnull(XXX)," ",XXX)&lt;BR /&gt;
In this way you are sure that each record has enhanced the field.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 09:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261854#M30177</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-07-18T09:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261855#M30178</link>
      <description>&lt;P&gt;Hi Giuseppe!&lt;/P&gt;

&lt;P&gt;Thanks for your solution but that's can't work because fields don't exist in Splunk...&lt;BR /&gt;
Normaly I have 60 fields but Splunk only get 40 fields in the search... So 20 of thems don't exist in Splunk (because they don't have value)...&lt;/P&gt;

&lt;P&gt;Exemple (imagine) : Count of Fields = 4 and Count of Lines = 3&lt;/P&gt;

&lt;P&gt;Field1|Field2|Field3|Field4&lt;BR /&gt;
Hi       |a         |1        |&lt;BR /&gt;
Hello |b         ||&lt;BR /&gt;
Hey    |||&lt;/P&gt;

&lt;P&gt;If I search "*" in Splunk search there is just Field1, Field2 &amp;amp; Field3 in the result, no trace of Field4, that's my problem...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 09:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261855#M30178</guid>
      <dc:creator>yzimmer</dc:creator>
      <dc:date>2016-07-18T09:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261856#M30179</link>
      <description>&lt;P&gt;what do you mean with "...only 40 fields in the search..." and "because they don't have value"?&lt;BR /&gt;
I have a search with 72 fields displayed (using only 15 of them to search) and my searches correctly run.&lt;BR /&gt;
In addition, if a field is defined I can give it a value also " ".&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 09:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261856#M30179</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-07-18T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261857#M30180</link>
      <description>&lt;P&gt;This picture is what Splunk propose for field :&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.hostingpics.net/viewer.php?id=531083Capture1.png"&gt;http://www.hostingpics.net/viewer.php?id=531083Capture1.png&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But if I do a search on empty field there is no result because there is no reference in Splunk...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 10:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261857#M30180</guid>
      <dc:creator>yzimmer</dc:creator>
      <dc:date>2016-07-18T10:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261858#M30181</link>
      <description>&lt;P&gt;try with fieldname=*, in this way you can find logs also if the field is enhanced only in a few logs, and then put the field in evidence, in this way you can see it always is enhanced.&lt;BR /&gt;
then if you try with the command "|eval XXX=if(isnull(XXX)," ",XXX)", in your stats you have all the logs with that field (both with value or space).&lt;BR /&gt;
doing this for all interested fields you can have a stats with all your logs.&lt;BR /&gt;
Use only fields you need because if you have many logs you decelerate your search.&lt;BR /&gt;
Bye.&lt;BR /&gt;
giuseppe &lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 11:34:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261858#M30181</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-07-18T11:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261859#M30182</link>
      <description>&lt;P&gt;try with fieldname=*, &lt;BR /&gt;
in this way you can find logs also if the field is enhanced only in a few logs, and then put the field in evidence, in this way you can see it always is enhanced.&lt;BR /&gt;
then if you try with the command "|eval XXX=if(isnull(XXX)," ",XXX)", in your stats you have all the logs with that field (both with value or space).&lt;BR /&gt;
doing this for all interested fields you can have a stats with all your logs.&lt;BR /&gt;
Use only fields you need because if you have many logs you decelerate your search.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 11:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261859#M30182</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-07-18T11:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261860#M30183</link>
      <description>&lt;P&gt;I think the problem is not the search but is the DATA.&lt;BR /&gt;
&lt;A href="http://www.hostingpics.net/viewer.php?id=776656Sanstitre.png"&gt;http://www.hostingpics.net/viewer.php?id=776656Sanstitre.png&lt;/A&gt;&lt;BR /&gt;
Many fields have a "null" value. That's why I can't search them in Splunk...&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/137764/fields-disappear-in-search-app.html"&gt;https://answers.splunk.com/answers/137764/fields-disappear-in-search-app.html&lt;/A&gt;&lt;BR /&gt;
In this post you can see the same problem&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261860#M30183</guid>
      <dc:creator>yzimmer</dc:creator>
      <dc:date>2016-07-18T14:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261861#M30184</link>
      <description>&lt;P&gt;I think that one of these 2 approaches should work:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/321170/fill-in-0-if-no-result-is-returned.html"&gt;https://answers.splunk.com/answers/321170/fill-in-0-if-no-result-is-returned.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/293823/how-to-table-list-of-values-from-lookup-not-found.html"&gt;https://answers.splunk.com/answers/293823/how-to-table-list-of-values-from-lookup-not-found.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:42:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261861#M30184</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-18T14:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get empty tag fields?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261862#M30185</link>
      <description>&lt;P&gt;if you're satisfied of the answer, please, accept the answer.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 11:17:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-get-empty-tag-fields/m-p/261862#M30185</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-09-09T11:17:21Z</dc:date>
    </item>
  </channel>
</rss>

