mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge branch 'dev' of https://github.com/Security-Onion-Solutions/securityonion into dev
This commit is contained in:
@@ -9,3 +9,5 @@ logrotate:
|
|||||||
extension .log
|
extension .log
|
||||||
dateext
|
dateext
|
||||||
dateyesterday
|
dateyesterday
|
||||||
|
group_conf: |
|
||||||
|
su root socore
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
{%- set logrotate_conf = salt['pillar.get']('logrotate:conf') %}
|
{%- set logrotate_conf = salt['pillar.get']('logrotate:conf') %}
|
||||||
|
{%- set group_conf = salt['pillar.get']('logrotate:group_conf') %}
|
||||||
|
|
||||||
|
|
||||||
/opt/so/log/aptcacher-ng/*.log
|
/opt/so/log/aptcacher-ng/*.log
|
||||||
/opt/so/log/idstools/*.log
|
/opt/so/log/idstools/*.log
|
||||||
@@ -13,7 +15,6 @@
|
|||||||
/opt/so/log/fleet/*.log
|
/opt/so/log/fleet/*.log
|
||||||
/opt/so/log/suricata/*.log
|
/opt/so/log/suricata/*.log
|
||||||
/opt/so/log/mysql/*.log
|
/opt/so/log/mysql/*.log
|
||||||
/opt/so/log/playbook/*.log
|
|
||||||
/opt/so/log/telegraf/*.log
|
/opt/so/log/telegraf/*.log
|
||||||
/opt/so/log/redis/*.log
|
/opt/so/log/redis/*.log
|
||||||
/opt/so/log/sensoroni/*.log
|
/opt/so/log/sensoroni/*.log
|
||||||
@@ -24,3 +25,11 @@
|
|||||||
{
|
{
|
||||||
{{ logrotate_conf | indent(width=4) }}
|
{{ logrotate_conf | indent(width=4) }}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Playbook's log directory needs additional configuration
|
||||||
|
# because Playbook requires a more permissive directory
|
||||||
|
/opt/so/log/playbook/*.log
|
||||||
|
{
|
||||||
|
{{ logrotate_conf | indent(width=4) }}
|
||||||
|
{{ group_conf | indent(width=4) }}
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,16 +2,15 @@
|
|||||||
"description" : "osquery",
|
"description" : "osquery",
|
||||||
"processors" : [
|
"processors" : [
|
||||||
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
|
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
|
||||||
|
|
||||||
{ "gsub": { "field": "message2.columns.data", "pattern": "\\\\xC2\\\\xAE", "replacement": "", "ignore_missing": true } },
|
{ "gsub": { "field": "message2.columns.data", "pattern": "\\\\xC2\\\\xAE", "replacement": "", "ignore_missing": true } },
|
||||||
{ "rename": { "if": "ctx.message2.columns?.eventid != null", "field": "message2.columns", "target_field": "winlog", "ignore_missing": true } },
|
{ "rename": { "if": "ctx.message2.columns?.eventid != null", "field": "message2.columns", "target_field": "winlog", "ignore_missing": true } },
|
||||||
{ "json": { "field": "winlog.data", "target_field": "temp", "ignore_failure": true } },
|
{ "json": { "field": "winlog.data", "target_field": "unparsed", "ignore_failure": true} },
|
||||||
{ "rename": { "field": "temp.EventData", "target_field": "winlog.event_data", "ignore_missing": true } },
|
{ "set": { "if": "!(ctx.unparsed?.EventData instanceof Map)", "field": "error.eventdata_parsing", "value": true, "ignore_failure": true } },
|
||||||
|
{ "rename": { "if": "!(ctx.error?.eventdata_parsing == true)", "field": "unparsed.EventData", "target_field": "winlog.event_data", "ignore_missing": true, "ignore_failure": true } },
|
||||||
{ "rename": { "field": "winlog.source", "target_field": "winlog.channel", "ignore_missing": true } },
|
{ "rename": { "field": "winlog.source", "target_field": "winlog.channel", "ignore_missing": true } },
|
||||||
{ "rename": { "field": "winlog.eventid", "target_field": "winlog.event_id", "ignore_missing": true } },
|
{ "rename": { "field": "winlog.eventid", "target_field": "winlog.event_id", "ignore_missing": true } },
|
||||||
{ "pipeline": { "if": "ctx.winlog?.channel == 'Microsoft-Windows-Sysmon/Operational'", "name": "sysmon" } },
|
{ "pipeline": { "if": "ctx.winlog?.channel == 'Microsoft-Windows-Sysmon/Operational'", "name": "sysmon" } },
|
||||||
{ "pipeline": { "if": "ctx.winlog?.channel != 'Microsoft-Windows-Sysmon/Operational'", "name":"win.eventlogs" } },
|
{ "pipeline": { "if": "ctx.winlog?.channel != 'Microsoft-Windows-Sysmon/Operational'", "name":"win.eventlogs" } },
|
||||||
|
|
||||||
{
|
{
|
||||||
"script": {
|
"script": {
|
||||||
"lang": "painless",
|
"lang": "painless",
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ influxconfdir:
|
|||||||
influxlogdir:
|
influxlogdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /opt/so/log/influxdb
|
- name: /opt/so/log/influxdb
|
||||||
- dir_mode: 775
|
- dir_mode: 755
|
||||||
- user: 939
|
- user: 939
|
||||||
- group: 939
|
- group: 939
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
|
|||||||
Reference in New Issue
Block a user