mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Logstash EVAL pipeline fix - osquery
This commit is contained in:
@@ -188,6 +188,7 @@ input {
|
|||||||
file {
|
file {
|
||||||
path => "/osquery/logs/result.log"
|
path => "/osquery/logs/result.log"
|
||||||
type => "osquery"
|
type => "osquery"
|
||||||
|
tags => ["osquery"]
|
||||||
}
|
}
|
||||||
file {
|
file {
|
||||||
path => "/strelka/strelka.log"
|
path => "/strelka/strelka.log"
|
||||||
|
|||||||
@@ -3,11 +3,24 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# Author: Josh Brower
|
# Author: Security Onion Solutions
|
||||||
# Last Update: 12/29/2018
|
# Last Update: 2/3/2020
|
||||||
# Output to ES for osquery tagged logs
|
# Output to ES for osquery tagged logs - EVAL install
|
||||||
|
|
||||||
|
|
||||||
|
filter {
|
||||||
|
if "osquery" in [tags] {
|
||||||
|
mutate {
|
||||||
|
rename => { "host" => "beat_host" }
|
||||||
|
remove_tag => ["beat"]
|
||||||
|
}
|
||||||
|
json {
|
||||||
|
source => "message"
|
||||||
|
target => "osquery"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
output {
|
output {
|
||||||
if "osquery" in [tags] {
|
if "osquery" in [tags] {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
|
|||||||
Reference in New Issue
Block a user