forked from HASecuritySolutions/Logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmcafee.conf
40 lines (36 loc) · 784 Bytes
/
mcafee.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Author: Justin Henderson
# Email: [email protected]
# Last Update: 11/18/2015
#
# This file looks for McAfee EPO logs coming from a NXLog client
input {
tcp {
port => 7003
type => "mcafee"
codec => json_lines
}
}
filter {
if [type] == "mcafee" {
# NXLog should be sending the logs in JSON format so they auto parse
json {
source => "message"
}
# This section converts the UTC fields to the proper time format
date {
match => [ "ReceivedUTC", "YYYY-MM-dd HH:mm:ss" ]
target => [ "ReceivedUTC" ]
}
date {
match => [ "DetectedUTC", "YYYY-MM-dd HH:mm:ss" ]
target => [ "DetectedUTC" ]
}
}
}
output {
if [type] == "mcafee" {
#stdout { codec => rubydebug }
elasticsearch {
}
}
}