-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcontent_pack.json
145 lines (145 loc) · 3.83 KB
/
content_pack.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"id" : null,
"name" : "Cisco Catalyst",
"description" : "This content pack will spawn a Graylog message input on UDP port 11001 and properly parse messages from your Cisco Catalyst devices. Configure your Catalyst devices to send syslog messages to this port.",
"category" : "Switches",
"inputs" : [ {
"title" : "Cisco Catalyst",
"configuration" : {
"override_source" : "",
"recv_buffer_size" : 262144,
"bind_address" : "0.0.0.0",
"port" : 11001
},
"type" : "org.graylog2.inputs.raw.udp.RawUDPInput",
"global" : false,
"extractors" : [ {
"title" : "Facility",
"type" : "REGEX",
"configuration" : {
"regex_value" : "^<(\\d.+)>"
},
"converters" : [ {
"type" : "SYSLOG_PRI_FACILITY",
"configuration" : { }
} ],
"order" : 0,
"cursor_strategy" : "COPY",
"target_field" : "facility",
"source_field" : "message",
"condition_type" : "NONE",
"condition_value" : ""
}, {
"title" : "Level",
"type" : "REGEX",
"configuration" : {
"regex_value" : "^<(\\d.+)>"
},
"converters" : [ {
"type" : "SYSLOG_PRI_LEVEL",
"configuration" : { }
} ],
"order" : 1,
"cursor_strategy" : "COPY",
"target_field" : "level",
"source_field" : "message",
"condition_type" : "NONE",
"condition_value" : ""
}, {
"title" : "Source",
"type" : "REGEX",
"configuration" : {
"regex_value" : ">: (.+?):"
},
"converters" : [ ],
"order" : 2,
"cursor_strategy" : "COPY",
"target_field" : "source",
"source_field" : "message",
"condition_type" : "NONE",
"condition_value" : ""
}, {
"title" : "Timestamp",
"type" : "REGEX",
"configuration" : {
"regex_value" : ">:\\s.+:\\s(.+?):\\s%"
},
"converters" : [ {
"type" : "FLEXDATE",
"configuration" : { }
} ],
"order" : 3,
"cursor_strategy" : "COPY",
"target_field" : "timestamp",
"source_field" : "message",
"condition_type" : "NONE",
"condition_value" : ""
}, {
"title" : "Local facility",
"type" : "REGEX",
"configuration" : {
"regex_value" : "%(.+?)-"
},
"converters" : [ {
"type" : "LOWERCASE",
"configuration" : { }
} ],
"order" : 4,
"cursor_strategy" : "COPY",
"target_field" : "local_facility",
"source_field" : "message",
"condition_type" : "NONE",
"condition_value" : ""
}, {
"title" : "Local level",
"type" : "REGEX",
"configuration" : {
"regex_value" : "%.+-(\\d?)-"
},
"converters" : [ {
"type" : "NUMERIC",
"configuration" : { }
} ],
"order" : 5,
"cursor_strategy" : "COPY",
"target_field" : "local_level",
"source_field" : "message",
"condition_type" : "NONE",
"condition_value" : ""
}, {
"title" : "Message",
"type" : "REGEX",
"configuration" : {
"regex_value" : "%.+-\\d+-\\w: (.*)$"
},
"converters" : [ ],
"order" : 7,
"cursor_strategy" : "COPY",
"target_field" : "message",
"source_field" : "message",
"condition_type" : "NONE",
"condition_value" : ""
}, {
"title" : "Mnemonic",
"type" : "REGEX",
"configuration" : {
"regex_value" : "%.+-\\d-(.+?):"
},
"converters" : [ {
"type" : "LOWERCASE",
"configuration" : { }
} ],
"order" : 6,
"cursor_strategy" : "COPY",
"target_field" : "mnemonic",
"source_field" : "message",
"condition_type" : "NONE",
"condition_value" : ""
} ],
"static_fields" : { }
} ],
"streams" : [ ],
"outputs" : [ ],
"dashboards" : [ ],
"grok_patterns" : [ ]
}