Created
August 21, 2023 02:05
Revisions
-
BoredHackerBlog created this gist
Aug 21, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ [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"