Skip to content

Commit

Permalink
remove old CSV parsing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
philhagen committed Mar 30, 2021
1 parent f44f8bf commit 9c580a0
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions configfiles/6801-azure.conf
@@ -1,36 +1,11 @@
# SOF-ELK® Configuration File
# (C)2021 Lewes Technology Consulting, LLC
#
# This file parses CSV-formatted Azure logs
# This file parses JSON-formatted Azure logs

filter {
if [type] == "azure" {

if "csv" in [tags] {
### Azure Activity Logs, in CSV format
# See https://docs.microsoft.com/en-us/azure/azure-monitor/platform/activity-log-schema
csv {
separator => ","
skip_empty_rows => "true"
columns => [ "correlation_guid", "operation_name", "status", "event_category", "level", "datetime", "subscription_guid", "initiator", "resource_type", "resource_group", "resource" ]
remove_field => "message"
add_tag => [ "azure_csv_activity_log" ]
}

if [datetime] == "Time" {
drop {} # drop the first line that contains the column names.
}

date {
match => [ "datetime", "ISO8601" ]
}

# remove unneccesary fields
mutate {
remove_field => [ "datetime" ]
}
}

if [raw][System][Provider][Name] == "Microsoft-Windows-Security-Auditing" {
#### Azure VM Event Logs, in XML format
date {
Expand Down

0 comments on commit 9c580a0

Please sign in to comment.