<?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 do you show all source types even if no data is available? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-show-all-source-types-even-if-no-data-is-available/m-p/455811#M78835</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm trying to show all the source types within the last 24 hours (I set that by using presets), and if those source types have no data, I still want to show the name of the soucetype but with 0 (represent no data). &lt;/P&gt;

&lt;P&gt;This is what I'm doing now, but it only shows the source types with data for the last 24 hours. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* |chart count over sourcetype 
|eval name=if(count=="0", "0", "1") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help. I searched everywhere and tried so many things but still no luck. Also, I'm trying to use the trellis visualization to represent those source types &lt;/P&gt;</description>
    <pubDate>Thu, 07 Feb 2019 19:18:28 GMT</pubDate>
    <dc:creator>maryamchar</dc:creator>
    <dc:date>2019-02-07T19:18:28Z</dc:date>
    <item>
      <title>How do you show all source types even if no data is available?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-show-all-source-types-even-if-no-data-is-available/m-p/455811#M78835</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'm trying to show all the source types within the last 24 hours (I set that by using presets), and if those source types have no data, I still want to show the name of the soucetype but with 0 (represent no data). &lt;/P&gt;

&lt;P&gt;This is what I'm doing now, but it only shows the source types with data for the last 24 hours. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* |chart count over sourcetype 
|eval name=if(count=="0", "0", "1") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help. I searched everywhere and tried so many things but still no luck. Also, I'm trying to use the trellis visualization to represent those source types &lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 19:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-show-all-source-types-even-if-no-data-is-available/m-p/455811#M78835</guid>
      <dc:creator>maryamchar</dc:creator>
      <dc:date>2019-02-07T19:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you show all source types even if no data is available?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-show-all-source-types-even-if-no-data-is-available/m-p/455812#M78836</link>
      <description>&lt;P&gt;use the &lt;CODE&gt;| metadata&lt;/CODE&gt; command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes index=*
| eval diff=now()-lastTime | where diff &amp;gt; 3600*24
| convert ctime(lastTime) 
| convert ctime(firstTime)  
| convert ctime(recentTime) 
| sort -diff
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;read more here:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/SearchReference/Metadata"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/SearchReference/Metadata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 22:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-show-all-source-types-even-if-no-data-is-available/m-p/455812#M78836</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-02-07T22:37:30Z</dc:date>
    </item>
  </channel>
</rss>

