<?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: Count # of sensors by host and dashboard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709437#M239780</link>
    <description>&lt;P&gt;I need to track the number of alerts configured under index=idx_sensors by hostname&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2025 08:07:38 GMT</pubDate>
    <dc:creator>ksheikh786</dc:creator>
    <dc:date>2025-01-22T08:07:38Z</dc:date>
    <item>
      <title>Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709408#M239763</link>
      <description>&lt;P&gt;Calculating metrics. I need to count the number of sensors that are created and monitored for each host. I have the index and sourcetype.&lt;/P&gt;&lt;P&gt;I created about 7 different dashboards with multiple host on each dashboard and I need to get a count on the number of sensors that are being monitored by each host.&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=idx_sensors sourcetype = sensorlog | stats count by host&lt;/P&gt;&lt;P&gt;the above query is giving me all the hostnames that are being monitored but the count is giving me all the events... I just need the # of sensors per host.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 04:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709408#M239763</guid>
      <dc:creator>ksheikh786</dc:creator>
      <dc:date>2025-01-22T04:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709409#M239764</link>
      <description>Can you give sample of your events?&lt;BR /&gt;You could add another or more field after by on stats if there is something which you could use.</description>
      <pubDate>Wed, 22 Jan 2025 05:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709409#M239764</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-01-22T05:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709410#M239765</link>
      <description>&lt;P&gt;Use dc&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=idx_sensors sourcetype = sensorlog 
| stats dc(sensor_field) as sensors by host&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 22 Jan 2025 05:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709410#M239765</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2025-01-22T05:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709413#M239767</link>
      <description>&lt;P&gt;Lets say I have a dashboard setup with 5 hosts (serverA, serverB, serverC, serverD, serverE), for each host there are 5-10 queries setup to pull data using the same index=idx_sensors.&lt;/P&gt;&lt;P&gt;I can manually count and see that there are x # of sensors setup per hostname.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I create a query to check how many sensors are being monitored by hostname?&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I've got 7 diff dashboards w/ multiple hosts monitoring X number of sensors. I need to get metrics for which host has how many sensors that are currently being monitored.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 05:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709413#M239767</guid>
      <dc:creator>ksheikh786</dc:creator>
      <dc:date>2025-01-22T05:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709415#M239769</link>
      <description>&lt;P&gt;Did you try the query I posted?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 06:02:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709415#M239769</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2025-01-22T06:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709416#M239770</link>
      <description>&lt;P&gt;Yes, it returned 0s&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 06:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709416#M239770</guid>
      <dc:creator>ksheikh786</dc:creator>
      <dc:date>2025-01-22T06:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709417#M239771</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I can manually count and see that there are x # of sensors setup per hostname.&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You need to show volunteers here HOW do you count number of sensors from logs (without using SPL).&lt;/P&gt;&lt;P&gt;Here are four commandments to help you ask answerable questions in this forum:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Illustrate data input (in raw text, anonymize as needed), whether they are raw events or output from a search (SPL that volunteers here do not have to look at).&lt;/LI&gt;&lt;LI&gt;Illustrate the desired output from illustrated data.&lt;/LI&gt;&lt;LI&gt;Explain the logic between illustrated data and desired output&amp;nbsp;&lt;EM&gt;without&lt;/EM&gt;&amp;nbsp;SPL.&lt;/LI&gt;&lt;LI&gt;If you also illustrate attempted SPL, illustrate actual output and compare with desired output, explain why they look different&amp;nbsp;&lt;U&gt;to you&lt;/U&gt;&amp;nbsp;if that is not painfully obvious.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 22 Jan 2025 06:08:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709417#M239771</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2025-01-22T06:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709418#M239772</link>
      <description>&lt;P&gt;What field does your data contain that holds the sensor value? Did you change the query as needed to pick up that field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 06:08:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709418#M239772</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2025-01-22T06:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709437#M239780</link>
      <description>&lt;P&gt;I need to track the number of alerts configured under index=idx_sensors by hostname&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 08:07:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709437#M239780</guid>
      <dc:creator>ksheikh786</dc:creator>
      <dc:date>2025-01-22T08:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Count # of sensors by host and dashboard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709737#M239850</link>
      <description>&lt;P&gt;You haven't answered key questions from me and&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;. &amp;nbsp;&lt;STRONG&gt;Without SPL&lt;/STRONG&gt;, what do you use to count number of sensors per host (if the total number of events is not the answer).&lt;/P&gt;&lt;P&gt;Let me repeat the&lt;SPAN&gt;&amp;nbsp;four commandments of asking answerable questions in this forum:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Illustrate data input (in raw text, anonymize as needed), whether they are raw events or output from a search (SPL that volunteers here do not have to look at).&lt;/LI&gt;&lt;LI&gt;Illustrate the desired output from illustrated data.&lt;/LI&gt;&lt;LI&gt;Explain the logic between illustrated data and desired output&amp;nbsp;&lt;EM&gt;without&lt;/EM&gt;&amp;nbsp;SPL.&lt;/LI&gt;&lt;LI&gt;If you also illustrate attempted SPL, illustrate actual output and compare with desired output, explain why they look different&amp;nbsp;&lt;U&gt;to you&lt;/U&gt;&amp;nbsp;if that is not painfully obvious.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 24 Jan 2025 23:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-of-sensors-by-host-and-dashboard/m-p/709737#M239850</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2025-01-24T23:45:26Z</dc:date>
    </item>
  </channel>
</rss>

