Merge pull request #428 from Security-Onion-Solutions/more_ecs

More ecs
This commit is contained in:
weslambert
2020-03-17 11:23:19 -04:00
committed by GitHub
22 changed files with 26 additions and 24 deletions

View File

@@ -39,7 +39,7 @@
{ "rename": { "field": "dataset", "target_field": "event.dataset", "ignore_missing": true } },
{
"remove": {
"field": [ "index_name_prefix", "beat"],
"field": [ "index_name_prefix"],
"ignore_failure": false
}
}

View File

@@ -2,6 +2,7 @@
"description" : "ossec",
"processors" : [
{ "json": { "field": "message", "target_field": "message2", "ignore_failure": true } },
{ "remove": { "field": [ "agent" ], "ignore_missing": true, "ignore_failure": false } },
{ "rename": { "field": "message2.agent", "target_field": "agent", "ignore_missing": true } },
{ "rename": { "field": "message2.data", "target_field": "data", "ignore_missing": true } },
{ "rename": { "field": "message2.decoder", "target_field": "decoder", "ignore_missing": true } },

View File

@@ -6,7 +6,7 @@
{ "rename": { "field": "message2.scan", "target_field": "scan", "ignore_missing": true } },
{ "rename": { "field": "message2.request", "target_field": "request", "ignore_missing": true } },
{ "rename": { "field": "scan.hash", "target_field": "file.hash", "ignore_missing": true } },
{ "remove": { "field": ["host", "path"], "ignore_missing": true } },
{ "remove": { "field": ["host", "path", "agent"], "ignore_missing": true } },
{ "pipeline": { "name": "common" } }
]
}

View File

@@ -8,7 +8,7 @@
{ "rename":{ "field": "message2.src_port", "target_field": "source.port", "ignore_failure": true } },
{ "rename":{ "field": "message2.dest_ip", "target_field": "destination.ip", "ignore_failure": true } },
{ "rename":{ "field": "message2.dest_port", "target_field": "destination.port", "ignore_failure": true } },
{ "remove": { "field": ["message2"], "ignore_failure": true } },
{ "remove": { "field": ["message2", "agent"], "ignore_failure": true } },
{ "pipeline": { "name": "common" } }
]
}

View File

@@ -16,7 +16,7 @@
{ "rename": { "field": "message2.id.resp_p", "target_field": "destination.port", "ignore_missing": true } },
{ "set": { "field": "server.port", "value": "{{destination.port}}" } },
{ "date": { "field": "message2.ts", "target_field": "@timestamp", "formats": ["ISO8601", "UNIX"], "ignore_failure": true } },
{ "remove": { "field": ["message2.ts", "path"], "ignore_failure": true } },
{ "remove": { "field": ["message2.ts", "path", "agent"], "ignore_failure": true } },
{ "pipeline": { "name": "common" } }
]
}

View File

@@ -114,11 +114,12 @@ so-elasticsearch:
- name: so-elasticsearch
- user: elasticsearch
- environment:
- bootstrap.memory_lock=true
- cluster.name={{ esclustername }}
- discovery.type=single-node
#- bootstrap.memory_lock=true
#- cluster.name={{ esclustername }}
- ES_JAVA_OPTS=-Xms{{ esheap }} -Xmx{{ esheap }}
- http.host=0.0.0.0
- transport.host=127.0.0.1
#- http.host=0.0.0.0
#- transport.host=127.0.0.1
- ulimits:
- memlock=-1:-1
- nofile=65536:65536

View File

@@ -71,7 +71,7 @@ filebeat.modules:
#=========================== Filebeat prospectors =============================
# List of prospectors to fetch data.
filebeat.prospectors:
filebeat.inputs:
#------------------------------ Log prospector --------------------------------
{%- if grains['role'] == 'so-sensor' or grains['role'] == "so-eval" or grains['role'] == "so-helix" or grains['role'] == "so-heavynode" %}
{%- if BROVER != 'SURICATA' %}

View File

@@ -21,7 +21,7 @@ output {
elasticsearch {
hosts => "{{ ES }}"
index => "so-switch-%{+YYYY.MM.dd}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -20,7 +20,7 @@ output {
hosts => "{{ ES }}"
index => "so-import-%{+YYYY.MM.dd}"
template_name => "logstash"
template => "/so-template.json"
template => "/so-common-template.json"
template_overwrite => true
}
}

View File

@@ -21,7 +21,7 @@ output {
elasticsearch {
hosts => "{{ ES }}"
index => "so-flow-%{+YYYY.MM.dd}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -20,7 +20,7 @@ output {
#stdout { codec => rubydebug }
elasticsearch {
hosts => "{{ ES }}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -19,7 +19,7 @@ output {
if [event_type] == "esxi" and "test_data" not in [tags] {
elasticsearch {
hosts => "{{ ES }}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -19,7 +19,7 @@ output {
if [event_type] == "greensql" and "test_data" not in [tags] {
elasticsearch {
hosts => "{{ ES }}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -20,7 +20,7 @@ output {
#stdout { codec => rubydebug }
elasticsearch {
hosts => "{{ ES }}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -20,7 +20,7 @@ output {
#stdout { codec => rubydebug }
elasticsearch {
hosts => "{{ ES }}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -22,7 +22,7 @@ output {
hosts => "{{ ES }}"
index => "so-ids-%{+YYYY.MM.dd}"
template_name => "logstash"
template => "/so-template.json"
template => "/so-common-template.json"
template_overwrite => true
}
}

View File

@@ -21,7 +21,7 @@ output {
hosts => "{{ ES }}"
index => "so-syslog-%{+YYYY.MM.dd}"
template_name => "logstash"
template => "/so-template.json"
template => "/so-common-template.json"
template_overwrite => true
}
}

View File

@@ -13,7 +13,7 @@ output {
elasticsearch {
hosts => "{{ ES }}"
index => "so-osquery-%{+YYYY.MM.dd}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -22,7 +22,7 @@ output {
hosts => "{{ ES }}"
index => "so-firewall-%{+YYYY.MM.dd}"
template_name => "logstash"
template => "/so-template.json"
template => "/so-common-template.json"
template_overwrite => true
}
}

View File

@@ -21,7 +21,7 @@ output {
elasticsearch {
hosts => "{{ ES }}"
index => "so-windows-%{+YYYY.MM.dd}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -21,7 +21,7 @@ output {
elasticsearch {
hosts => "{{ ES }}"
index => "so-%{+YYYY.MM.dd}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}

View File

@@ -21,7 +21,7 @@ output {
elasticsearch {
hosts => "{{ ES }}"
index => "so-ids-%{+YYYY.MM.dd}"
template => "/so-template.json"
template => "/so-common-template.json"
}
}
}