File tree Expand file tree Collapse file tree 4 files changed +63
-0
lines changed
tests/config/junos/NH_REGION_GRAB_FAILED/default Expand file tree Collapse file tree 4 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ messages :
2
+ # 'error' should be unique and vendor agnostic. Currently we are using the JUNOS syslog message name as the canonical name.
3
+ # This may change if we are able to find a more well defined naming system.
4
+ - error : NH_REGION_GRAB_FAILED
5
+ tag : JPRDS_NH
6
+ values :
7
+ id : (\d+)
8
+ nh : (\d+)
9
+ line : ' jprds_nh_alloc(),{id}: JNH[0] failed to grab new region for NH#{nh}'
10
+ model : NO_MODEL
11
+ mapping :
12
+ variables :
13
+ nh//region//failed//id : id
14
+ nh//region//failed//nh : nh
15
+ static : {}
Original file line number Diff line number Diff line change @@ -36,3 +36,16 @@ prefixes:
36
36
# Some logs have data which can be inside brackets or parenthesis
37
37
additionalData : (?:(?:\[|\()(.+)(?:\]|\)))?
38
38
line : ' {date} {time} {hostPrefix}{host} fpc{fpcId} {tag}{additionalData}:'
39
+ # The following matches dcpfe specific logs
40
+ - time_format : " %b %d %H:%M:%S"
41
+ values :
42
+ date : (\w+\s+\d+)
43
+ time : (\d\d:\d\d:\d\d)
44
+ hostPrefix : (re\d.)?
45
+ host : ([^ ]+)
46
+ fpcId : (\d+)
47
+ fpcId2 : (\d+)
48
+ tag : (\w+)
49
+ # Some logs have data which can be inside brackets or parenthesis
50
+ additionalData : (?:(?:\[|\()(.+)(?:\]|\)))?
51
+ line : ' {date} {time} {hostPrefix}{host} fpc{fpcId} fpc{fpcId2} dcpfe: {tag}{additionalData}:'
Original file line number Diff line number Diff line change
1
+ <7>Dec 10 00:00:01 re0.edge01.bjm01 fpc3 fpc3 dcpfe: JPRDS_NH:jprds_nh_alloc(),631: JNH[0] failed to grab new region for NH#007
Original file line number Diff line number Diff line change
1
+ {
2
+ "yang_message" : {
3
+ "nh" : {
4
+ "region" : {
5
+ "failed" : {
6
+ "nh" : " 007" ,
7
+ "id" : " 631"
8
+ }
9
+ }
10
+ }
11
+ },
12
+ "message_details" : {
13
+ "additionalData" : null ,
14
+ "severity" : 7 ,
15
+ "facility" : 0 ,
16
+ "hostPrefix" : " re0." ,
17
+ "pri" : " 7" ,
18
+ "host" : " edge01.bjm01" ,
19
+ "tag" : " JPRDS_NH" ,
20
+ "fpcId" : " 3" ,
21
+ "fpcId2" : " 3" ,
22
+ "time" : " 00:00:01" ,
23
+ "date" : " Dec 10" ,
24
+ "message" : " jprds_nh_alloc(),631: JNH[0] failed to grab new region for NH#007"
25
+ },
26
+ "facility" : 0 ,
27
+ "ip" : " 127.0.0.1" ,
28
+ "error" : " NH_REGION_GRAB_FAILED" ,
29
+ "host" : " edge01.bjm01" ,
30
+ "yang_model" : " NO_MODEL" ,
31
+ "timestamp" : 1575936001 ,
32
+ "os" : " junos" ,
33
+ "severity" : 7
34
+ }
You can’t perform that action at this time.
0 commit comments