-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path02-filter.conf
70 lines (70 loc) · 1.83 KB
/
02-filter.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
filter{
if [destination][ip] {
memcached {
hosts => ["memcached:11211"]
namespace => "misp-ip"
get => {
"%{[destination][ip]}" => "[enrich][tmp]"
}
}
if [enrich][tmp] {
ruby {
path => "/etc/logstash/process_ioc.rb"
}
mutate {
remove_field => [ "[enrich]" ]
}
}
}
if [dns][resolved_ip] {
memcached {
hosts => ["memcached:11211"]
namespace => "misp-ip"
get => {
"%{[dns][resolved_ip]}" => "[enrich][tmp]"
}
}
if [enrich][tmp] {
ruby {
path => "/etc/logstash/process_ioc.rb"
}
mutate {
remove_field => [ "[enrich]" ]
}
}
}
if [dns][question][registered_domain] {
memcached {
hosts => ["memcached:11211"]
namespace => "misp-domain"
get => {
"%{[dns][question][registered_domain]}" => "[enrich][tmp]"
}
}
if [enrich][tmp] {
ruby {
path => "/etc/logstash/process_ioc.rb"
}
mutate {
remove_field => [ "[enrich]" ]
}
}
}
if [hash][sha256] {
memcached {
hosts => ["memcached:11211"]
namespace => "misp-sha256"
get => {
"%{[hash][sha256]}" => "[enrich][tmp]"
}
}
if [enrich][tmp] {
ruby {
path => "/etc/logstash/process_ioc.rb"
}
mutate {
remove_field => [ "[enrich]" ]
}
}
}
}