From a7bd22f99d9ccc1122d24f001badafded87dbec1 Mon Sep 17 00:00:00 2001 From: mstopa-splunk <139441697+mstopa-splunk@users.noreply.github.com> Date: Wed, 17 Jan 2024 14:34:26 +0100 Subject: [PATCH] feat: SC4S Dashboard (#2292) --- dashboard/dashboard.xml | 452 +++++++++++++++++++++++ docs/dashboard.md | 33 ++ mkdocs.yml | 1 + package/etc/conf.d/sources/internal.conf | 1 + 4 files changed, 487 insertions(+) create mode 100644 dashboard/dashboard.xml create mode 100644 docs/dashboard.md diff --git a/dashboard/dashboard.xml b/dashboard/dashboard.xml new file mode 100644 index 0000000000..a4dc15ad16 --- /dev/null +++ b/dashboard/dashboard.xml @@ -0,0 +1,452 @@ +
\ No newline at end of file diff --git a/docs/dashboard.md b/docs/dashboard.md new file mode 100644 index 0000000000..b0992f07a8 --- /dev/null +++ b/docs/dashboard.md @@ -0,0 +1,33 @@ +# SC4S Metrics and Events Dashboard +The SC4S Metrics and Events Dashboard lets you monitor crucial metrics and event flows for all the SC4S instances sending data to a chosen Splunk platform. + + +## Functionalities + +### Overview metrics +The dashboard displays the cumulative sum of received and dropped messages for all SC4S instances in a chosen interval and for the specified time range. By default the interval is set to 30 seconds and the time range is 15 minutes. + +The Received Messages panel can be used as a heartbeat metric. A healthy SC4S instance should send at least one message per 30 seconds. This metrics message is included in the count. + +The Dropped Messages panel should remain at a constant level of 0. If SC4S drops messages due to filters, slow performance, or for any other reason, the number of dropped messages will persist until the instance restarts. This panel does not include potential UDP messages dropped from the port buffer, which SC4S is not able to track. + +### Single instance metrics +You can display the instance name and SC4S version for a chosen SC4S instance. +SC4S is available in versions greater than or equal to 3.16.0. + +The dashboard also displays a timechart of deltas for received, queued, and dropped messages for a chosen SC4S instance. + +### Single instance events +The dashboard helps to analyze traffic processed by an SC4S instance by visualizing the following events data: + +- total number of events +- distributions of events by index +- trends of events by index +- data parsers in use +- applied tags + +## Installation +1. In Splunk platform open `Search` -> `Dashboards`. +2. Click on `Create New Dashboard` and make an empty dashboard. Be sure to choose `Classic Dashboards`. +3. In the `Edit Dashboard` view go to `Source` and replace the initial xml with the contents of [dashboard/dashboard.xml](https://github.com/splunk/splunk-connect-for-syslog/blob/main/dashboard/dashboard.xml) published in the SC4S repository. +4. After saving the changes your dashboard will be ready to use. \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 93f9293876..9f26aae99d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -60,6 +60,7 @@ nav: - Troubleshooting: - SC4S Startup and Validation: "troubleshooting/troubleshoot_SC4S_server.md" - SC4S Logging and Troubleshooting Resources: "troubleshooting/troubleshoot_resources.md" + - Dashboard: "dashboard.md" - Experiments: "experiments.md" - Upgrading SC4S: "upgrade.md" - SC4S FAQ: "faq.md" diff --git a/package/etc/conf.d/sources/internal.conf b/package/etc/conf.d/sources/internal.conf index 148c81566a..47bd35c981 100644 --- a/package/etc/conf.d/sources/internal.conf +++ b/package/etc/conf.d/sources/internal.conf @@ -12,6 +12,7 @@ source s_internal { rewrite { subst('^.*@','' value('HOST')); set("`SC4S_CONTAINER_HOST`", value("fields.sc4s_loghost") condition('`SC4S_CONTAINER_HOST`' ne "")); + set("`SC4S_VERSION`", value("fields.sc4s_version") condition('`SC4S_VERSION`' ne "")); set($LOGHOST, value("fields.sc4s_container") condition(match('container' template('`SC4S_DEST_SPLUNK_INDEXED_FIELDS`') type(string) flags(substring)) )); };