Created
August 21, 2023 02:05
-
-
Save BoredHackerBlog/a922a841c58a4a5c71a77e641906cc95 to your computer and use it in GitHub Desktop.
splunk free json ingest w/ persistence
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.6" | |
services: | |
so1: | |
image: splunk/splunk:latest | |
container_name: so1 | |
environment: | |
- SPLUNK_START_ARGS=--accept-license | |
- SPLUNK_PASSWORD=password | |
- SPLUNK_LICENSE_URI=Free | |
- SPLUNK_HEC_TOKEN=abcd1234 | |
ports: | |
- 8000:8000 | |
- 8088:8088 | |
volumes: | |
- ./var:/opt/splunk/var #var and etc can be zipped and backed up | |
- ./etc:/opt/splunk/etc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sources.events] | |
type = "file" | |
include = [ "/home/research/bulk_events.json" ] | |
data_dir = "/tmp/vector/" | |
read_from = "beginning" | |
[transforms.events_json] | |
type = "remap" | |
inputs = [ "events" ] | |
source = ". = parse_json!(.message)" | |
[sinks.splunk] | |
type = "splunk_hec_logs" | |
inputs = [ "events_json" ] | |
endpoint = "https://10.0.0.2:8088" | |
default_token = "abcd1234" | |
index = "win" | |
sourcetype = "mitre" | |
tls.verify_certificate=false | |
encoding.codec = "json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment