Gather metrics from elastic agent to influx

This commit is contained in:
Mike Reeves
2024-04-02 15:36:01 -04:00
parent 65f6b7022c
commit 283939b18a
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.
. /usr/sbin/so-common
curl -s -K /opt/so/conf/elasticsearch/curl.config -L "http://localhost:5601/api/fleet/agent_status" | jq .