-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from neu5ron/master
Logstash refactoring and many logstash additions
- Loading branch information
Showing
67 changed files
with
4,113 additions
and
1,599 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"order": 10, | ||
"index_patterns": [ "logs-*" ], | ||
"version": 2018080201, | ||
"settings": { | ||
"index": { | ||
"mapping": { | ||
"ignore_malformed": true, | ||
"total_fields.limit": "1000", | ||
"coerce": true | ||
} | ||
}, | ||
"refresh_interval": "30s" | ||
}, | ||
"mappings": { | ||
"_doc": { | ||
"dynamic": "true", | ||
"dynamic_templates": [ | ||
{ | ||
"strings": { | ||
"match_mapping_type": "string", | ||
"mapping": { | ||
"type": "text", | ||
"norms": false, | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword", | ||
"ignore_above": 1024 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"properties": { | ||
"@timestamp": { | ||
"type": "date" | ||
}, | ||
"@version": { | ||
"type": "keyword" | ||
}, | ||
"log_ingest_timestamp": { | ||
"type": "date" | ||
}, | ||
"z_logstash_type": { | ||
"enabled": false | ||
}, | ||
"z_original_message": { | ||
"enabled": false | ||
}, | ||
"z_logstash_pipeline": { | ||
"enabled": false | ||
} | ||
} | ||
} | ||
} | ||
} |
153 changes: 153 additions & 0 deletions
153
helk-logstash/output_templates/50-logs-winevent-all.json
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
{ | ||
"order": 50, | ||
"index_patterns": [ "logs-endpoint-winevent-*" ], | ||
"version": 2018080101, | ||
"settings": { | ||
"analysis": { | ||
"analyzer": { | ||
"cli_n_file_analyzer": { | ||
"type": "custom", | ||
"filter": [ "case_change_only_delim_filter", "three_or_more_tokenizer_limit_filter", "cli_n_file_word_delim_filter", "two_or_more_tokenizer_limit_filter", "lowercase", "unique" ], | ||
"tokenizer": "standard" | ||
} | ||
}, | ||
"filter": { | ||
"cli_n_file_word_delim_filter": { | ||
"type": "word_delimiter", | ||
"generate_word_parts": true, | ||
"split_on_case_change": true, | ||
"split_on_numerics": false, | ||
"stem_english_possessive": false, | ||
"generate_number_parts": true, | ||
"preserve_original": true | ||
}, | ||
"case_change_only_delim_filter": { | ||
"type": "word_delimiter", | ||
"generate_word_parts": true, | ||
"split_on_case_change": true, | ||
"split_on_numerics": false, | ||
"stem_english_possessive": false, | ||
"generate_number_parts": false, | ||
"preserve_original": true | ||
}, | ||
"two_or_more_tokenizer_limit_filter": { | ||
"type": "length", | ||
"min": 2 | ||
}, | ||
"three_or_more_tokenizer_limit_filter": { | ||
"type": "length", | ||
"min": 3 | ||
} | ||
}, | ||
"normalizer": { | ||
"lowercase_normalizer": { | ||
"type": "custom", | ||
"char_filter": [ ], | ||
"filter": [ "lowercase" ] | ||
} | ||
} | ||
}, | ||
"index": { | ||
"mapping": { | ||
"total_fields.limit": "3000" | ||
} | ||
}, | ||
"refresh_interval": "30s" | ||
}, | ||
"mappings": { | ||
"_doc":{ | ||
"properties":{ | ||
"process_id":{"type":"integer"}, | ||
"event_id":{"type":"integer"}, | ||
"file_name": { | ||
"type": "text", | ||
"norms": false, | ||
"analyzer": "cli_n_file_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 7500, | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"logon_process_name": { | ||
"type": "text", | ||
"norms": false, | ||
"analyzer": "cli_n_file_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 7500, | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"object_name": { | ||
"type": "text", | ||
"norms": false, | ||
"analyzer": "cli_n_file_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 7500, | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"process_command_line": { | ||
"type": "text", | ||
"norms": false, | ||
"analyzer": "cli_n_file_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 7500, | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"process_current_directory": { | ||
"type": "text", | ||
"norms": false, | ||
"analyzer": "cli_n_file_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 7500, | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"process_parent_path": { | ||
"type": "text", | ||
"norms": false, | ||
"analyzer": "cli_n_file_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 7500, | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"process_parent_command_line": { | ||
"type": "text", | ||
"norms": false, | ||
"analyzer": "cli_n_file_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 7500, | ||
"type": "keyword" | ||
} | ||
} | ||
}, | ||
"process_path": { | ||
"type": "text", | ||
"norms": false, | ||
"analyzer": "cli_n_file_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"ignore_above": 7500, | ||
"type": "keyword" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
helk-logstash/output_templates/60-powershell-direct-template.json
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"order": 60, | ||
"index_patterns" : "logs-endpoint-powershell-direct-*", | ||
"version": 2018080101, | ||
"mappings":{ | ||
"_doc":{ | ||
"properties":{ | ||
"process_id":{"type":"integer"} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
helk-logstash/output_templates/60-winevent-application-template.json
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"order": 60, | ||
"index_patterns": [ "logs-endpoint-winevent-application-*" ], | ||
"version": 2018080101, | ||
"mappings":{ | ||
"_doc":{ | ||
"properties":{ | ||
"spp_restart_scheduled":{"type":"date"} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.