Merge pull request #9424 from idealphase/main

Add splunkhec-detect.yaml
patch-1
Dhiyaneshwaran 2024-04-11 12:33:20 +05:30 committed by GitHub
commit a1f8a3acae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
id: splunk-hec-detect
info:
name: Splunk HEC - Detect
author: idealphase
severity: info
description: |
Splunk HCE (HTTP Event Collector (HEC)) was detected.
reference:
- https://dev.splunk.com/enterprise/docs/devtools/httpeventcollector/
- https://community.splunk.com/t5/Getting-Data-In/How-to-check-if-an-HEC-is-up-or-not-before-posting-any-data-to/td-p/417404
metadata:
verified: true
max-request: 1
tags: tech,splunk,hec,detect
http:
- method: GET
path:
- "{{BaseURL}}/services/collector/health"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains_any(body, "text\":\"HEC is healthy\",\"code")'
- 'contains(header, "application/json")'
condition: and