<?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 monitoring hundreds of metrics and/or configuration items: how to do efficiently? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9477#M77</link>
    <description>&lt;P&gt;I'm trying to use Splunk to monitor both runtime metrics and configuration state of a server application like JBoss or SQL Server.  My goal is to test each application against a set of "known good" tests and report on which server software is out of compliance. &lt;/P&gt;

&lt;P&gt;If I just wanted to monitor one metric (e.g. free disk space &amp;gt; 10%) or one configuration setting (e.g. the value of a particular Windows registry key) this would be easy in Splunk via a saved search.&lt;/P&gt;

&lt;P&gt;But operations teams can sometimes document a "known good" definition which can include tens or even hundreds of checks for one piece of server software.&lt;/P&gt;

&lt;P&gt;What's the most efficient way using Splunk to do hundreds of different tests against logged metrics or configuration data?  I assume that having hundreds of saved searches is &lt;EM&gt;not&lt;/EM&gt; the best way to do this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2010 02:39:42 GMT</pubDate>
    <dc:creator>Justin_Grant</dc:creator>
    <dc:date>2010-01-26T02:39:42Z</dc:date>
    <item>
      <title>monitoring hundreds of metrics and/or configuration items: how to do efficiently?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9477#M77</link>
      <description>&lt;P&gt;I'm trying to use Splunk to monitor both runtime metrics and configuration state of a server application like JBoss or SQL Server.  My goal is to test each application against a set of "known good" tests and report on which server software is out of compliance. &lt;/P&gt;

&lt;P&gt;If I just wanted to monitor one metric (e.g. free disk space &amp;gt; 10%) or one configuration setting (e.g. the value of a particular Windows registry key) this would be easy in Splunk via a saved search.&lt;/P&gt;

&lt;P&gt;But operations teams can sometimes document a "known good" definition which can include tens or even hundreds of checks for one piece of server software.&lt;/P&gt;

&lt;P&gt;What's the most efficient way using Splunk to do hundreds of different tests against logged metrics or configuration data?  I assume that having hundreds of saved searches is &lt;EM&gt;not&lt;/EM&gt; the best way to do this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 02:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9477#M77</guid>
      <dc:creator>Justin_Grant</dc:creator>
      <dc:date>2010-01-26T02:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring hundreds of metrics and/or configuration items: how to do efficiently?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9478#M78</link>
      <description>&lt;P&gt;Is it possible to treat the entire dumped config state, as 1 multiline event?  (I.e., are the lines consecutive?)  If so, a single (admittedly hairy) saved search will then provide a binary pass/fail answer, or even a numeric "how many checks failed" answer or string "which checks failed" answer with &lt;CODE&gt;EVAL ... if(X,Y,Z)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 05:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9478#M78</guid>
      <dc:creator>V_at_Splunk</dc:creator>
      <dc:date>2010-01-26T05:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring hundreds of metrics and/or configuration items: how to do efficiently?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9479#M79</link>
      <description>&lt;P&gt;There's probably a better way this could be built into Splunk, but here's how I would go about it.&lt;/P&gt;

&lt;P&gt;First, let's assume that every config is just a file, and it's all on one known host. Then I would set up fschange monitoring on all the relevant files on the "good" server, and have it generate a hash (set hashMaxSize large enough to include all your files).&lt;/P&gt;

&lt;P&gt;Next, we schedule and run a search to generate a lookup table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=goodhost sourcetype=fs_notification | rename hash as goodhash | dedup path | fields path,goodhash | outputlookup goodconfig.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On the clients, we also fschange the relevant files. Then we could do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host!=goodhost sourcetype=fs_notification | dedup host,path | lookup goodconfig.csv path OUTPUT goodhash | where hash!=goodhash
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This assumes the file paths are the same, though you could use "eval" to appropriately do string transformations as needed.&lt;/P&gt;

&lt;P&gt;Now this could be extended to other sorts of objects other than files, as long as we had a way to create a listing of object IDs, corresponding to the file path in the case of files, that match between the "good" source and the "questionable" source, and a way to generate a key on the object contents (such as the fschange input or a custom scripted input). And I suppose in general, if you used consistent field names (e.g., objectPath, goodHash) when writing out the "check" results, and just a limited number of sourcetypes, then it should be easy to keep the lookup table generation and search quite simple.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2010 06:08:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9479#M79</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-01-27T06:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring hundreds of metrics and/or configuration items: how to do efficiently?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9480#M80</link>
      <description>&lt;P&gt;Clever, I like it!  Breaks unless the config files are generated programmatically with an absolutely consistent format, though.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2010 06:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9480#M80</guid>
      <dc:creator>V_at_Splunk</dc:creator>
      <dc:date>2010-01-27T06:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: monitoring hundreds of metrics and/or configuration items: how to do efficiently?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9481#M81</link>
      <description>&lt;P&gt;My presumption was that the configs are pushed out from the "main" server, and that any difference is significant. If this is not the case, the generalized solution of using a scripted input rather than fschange would allow you to use a hashing function that (e.g.) ignores whitespace or normalizes line-endings or whatever.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2010 14:14:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/monitoring-hundreds-of-metrics-and-or-configuration-items-how-to/m-p/9481#M81</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-01-27T14:14:49Z</dc:date>
    </item>
  </channel>
</rss>

