mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-28 20:03:44 +01:00
Setup - Add sensor pillar to Helix
This commit is contained in:
@@ -15,10 +15,6 @@ filter {
|
||||
]
|
||||
}
|
||||
|
||||
grok {
|
||||
match => [ "syslog-tags", "^.source.s_%{DATA:class}$" ]
|
||||
}
|
||||
|
||||
geoip {
|
||||
source => "[source_ip]"
|
||||
target => "source_geo"
|
||||
@@ -30,10 +26,10 @@ filter {
|
||||
mutate {
|
||||
#rename => { "%{[source_geo][country_code]}" => "srccountrycode" }
|
||||
#rename => { "%{[destination_geo][country_code]}" => "dstcountrycode" }
|
||||
rename => { "syslog-host_from" => "sensor" }
|
||||
rename => { "[beat_host][name]" => "sensor" }
|
||||
rename => { "message" => "rawmsg" }
|
||||
#rename => { "event_type" => "program" }
|
||||
#copy => { "program" => "class" }
|
||||
copy => { "type" => "class" }
|
||||
rename => { "source_port" => "srcport" }
|
||||
rename => { "destination_port" => "dstport" }
|
||||
remove_field => ["source_ip", "destination_ip"]
|
||||
|
||||
@@ -1101,8 +1101,11 @@ salt_install_mysql_deps() {
|
||||
}
|
||||
|
||||
sensor_pillar() {
|
||||
|
||||
SENSORPILLARPATH=$TMP/pillar/sensors
|
||||
if [ $INSTALLTYPE == 'HELIXSENSOR' ]; then
|
||||
SENSORPILLARPATH=/opt/so/saltstack
|
||||
else
|
||||
SENSORPILLARPATH=$TMP/pillar/sensors
|
||||
fi
|
||||
if [ ! -d $SENSORPILLARPATH ]; then
|
||||
mkdir -p $SENSORPILLARPATH
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user