-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathexample_config.json
48 lines (47 loc) · 2.15 KB
/
example_config.json
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
{
"http": {
"bind": ":8080"
},
"indexers": [
{
"name": "conn",
"backend": "bro",
"file_glob": "/bro/logs/*/conn.*gz",
"recent_file_glob": "/bro/logs/%Y-%m-%d/conn.*gz",
"filename_to_database_regex": "logs/(?P<yearmonth>\\d+-\\d+)-\\d+/",
"filename_to_time_regex": "logs/(?P<year>\\d\\d\\d\\d)-(?P<month>\\d\\d)-(?P<day>\\d\\d)/\\w+\\.(?P<hour>\\d\\d):(?P<minute>\\d\\d)",
"database_root": "/bro/index/conn/",
"database_path": "$yearmonth.db"
},
{
"name": "http",
"backend": "bro",
"file_glob": "/bro/logs/*/http.*gz",
"recent_file_glob": "/bro/logs/%Y-%m-%d/http.*gz",
"filename_to_database_regex": "logs/(?P<yearmonth>\\d+-\\d+)-\\d+/",
"filename_to_time_regex": "logs/(?P<year>\\d\\d\\d\\d)-(?P<month>\\d\\d)-(?P<day>\\d\\d)/\\w+\\.(?P<hour>\\d\\d):(?P<minute>\\d\\d)",
"database_root": "/bro/index/http/",
"database_path": "$yearmonth.db"
},
{
"name": "notice",
"backend": "bro",
"file_glob": "/bro/logs/*/notice.*gz",
"recent_file_glob": "/bro/logs/%Y-%m-%d/notice.*gz",
"filename_to_database_regex": "logs/(?P<year>\\d+)-\\d+-\\d+/",
"filename_to_time_regex": "logs/(?P<year>\\d\\d\\d\\d)-(?P<month>\\d\\d)-(?P<day>\\d\\d)/\\w+\\.(?P<hour>\\d\\d):(?P<minute>\\d\\d)",
"database_root": "/bro/index/notice/",
"database_path": "$year.db"
},
{
"name": "flows",
"backend": "nfdump",
"file_glob": "/netflow/data/*/*/*/*/nfcapd.*",
"recent_file_glob": "/netflow/data/*/%Y/%m/%d/nfcapd.*",
"filename_to_database_regex": "nfcapd.(?P<year>\\d\\d\\d\\d)(?P<month>\\d\\d)(?P<day>\\d\\d)(?P<hour>\\d\\d)(?P<minute>\\d\\d)",
"filename_to_time_regex": "nfcapd.(?P<year>\\d\\d\\d\\d)(?P<month>\\d\\d)(?P<day>\\d\\d)(?P<hour>\\d\\d)(?P<minute>\\d\\d)",
"database_root": "/opt/flow-indexer/flows/",
"database_path": "$year$month$day.db"
}
]
}