Incorrect severity & facility
Posted: Tue Jan 31, 2017 5:10 am
Hi.
We are getting the Juniper VPN logs but the severity and facility fields are not properly handling them in the dashboard.
For example one of the logs is:
13:00:40.512212 IP (tos 0x0, ttl 64, id 27272, offset 0, flags [none], proto UDP (17), length 1018)
192.168.253.236.514 > 192.168.253.34.5544: [udp sum ok] SYSLOG, length: 990
Facility daemon (3), Severity info (6)
Msg: 1 2017-01-31T10:43:22.607+01:00 SRX-240 kmd 1492 KMD_VPN_UP_ALARM_USER [[email protected] vpn-name="INSTANCE-KN_0002_0015_0000" remote-address="57.66.70.251" local-address="192.168.253.236" gateway-name="VPN-to-KN" group-name="KN" tunnel-id="2" interface-name="" internal-ip="Not-Available" name="46.24.17.9" peer-name="57.66.70.251" client-name="Not-Applicable" vrrp-group-id="0" traffic-selector-name="" traffic-selector-cfg-local-id="ipv4_subnet(any:0,[0..7\]=192.168.10.0/24)" traffic-selector-cfg-remote-id="ipv4(any:0,[0..3\]=10.29.67.108)"] VPN INSTANCE-KN_0002_0015_0000 from 57.66.70.251 is up. Local-ip: 192.168.253.236, gateway name: VPN-to-KN, vpn name: KN, tunnel-id: 2, local tunnel-if: , remote tunnel-ip: Not-Available, Local IKE-ID: 46.24.17.9, Remote IKE-ID: 57.66.70.251, XAUTH username: Not-Applicable, VR id: 0, Traffic-selector: , Traffic-selector local ID: ipv4_subnet(any:0,[0..7]=192.168.10.0/24), Traffic-selector remote ID: ipv4(any:0,[0..3]=10.29.67.108)
In the dashboard the following is received:
{
"_index": "logstash-2017.01.31",
"_type": "syslog",
"_id": "AVnz7os4zazFj2I0A50s",
"_score": null,
"_source": {
"message": "<30>1 2017-01-31T08:35:00.690+01:00 SRX-240 kmd 1492 KMD_VPN_UP_ALARM_USER [[email protected] vpn-name=\"INSTANCE-KN_0002_0015_0000\" remote-address=\"57.66.70.251\" local-address=\"192.168.253.236\" gateway-name=\"VPN-to-KN\" group-name=\"KN\" tunnel-id=\"2\" interface-name=\"\" internal-ip=\"Not-Available\" name=\"46.24.17.9\" peer-name=\"57.66.70.251\" client-name=\"Not-Applicable\" vrrp-group-id=\"0\" traffic-selector-name=\"\" traffic-selector-cfg-local-id=\"ipv4_subnet(any:0,[0..7\\]=192.168.10.0/24)\" traffic-selector-cfg-remote-id=\"ipv4(any:0,[0..3\\]=10.29.67.108)\"] VPN INSTANCE-KN_0002_0015_0000 from 57.66.70.251 is up. Local-ip: 192.168.253.236, gateway name: VPN-to-KN, vpn name: KN, tunnel-id: 2, local tunnel-if: , remote tunnel-ip: Not-Available, Local IKE-ID: 46.24.17.9, Remote IKE-ID: 57.66.70.251, XAUTH username: Not-Applicable, VR id: 0, Traffic-selector: , Traffic-selector local ID: ipv4_subnet(any:0,[0..7]=192.168.10.0/24), Traffic-selector remote ID: ipv4(any:0,[0..3]=10.29.67.108)",
"@version": "1",
"@timestamp": "2017-01-31T09:50:12.927Z",
"type": "syslog",
"host": "192.168.253.236",
"tags": [
"_grokparsefailure_sysloginput"
],
"priority": 0,
"severity": 0,
"facility": 0,
"facility_label": "kernel",
"severity_label": "Emergency"
},
"highlight": {
"message": [
"<30>1 2017-01-31T08:35:00.690+01:00 SRX-240 kmd 1492 @start-highlight@KMD_VPN_UP_ALARM_USER@end-highlight@ [[email protected] vpn-name=\"@start-highlight@INSTANCE@end-highlight@-@start-highlight@KN_0002_0015_0000@end-highlight@\" remote-address=\"57.66.70.251\" local-address=\"192.168.253.236\" gateway-name=\"VPN-to-KN\" group-name=\"KN\" tunnel-id=\"2\" interface-name=\"\" internal-ip=\"Not-Available\" name=\"46.24.17.9\" peer-name=\"57.66.70.251\" client-name=\"Not-Applicable\" vrrp-group-id=\"0\" traffic-selector-name=\"\" traffic-selector-cfg-local-id=\"ipv4_subnet(any:0,[0..7\\]=192.168.10.0/24)\" traffic-selector-cfg-remote-id=\"ipv4(any:0,[0..3\\]=10.29.67.108)\"] VPN @start-highlight@INSTANCE@end-highlight@-@start-highlight@KN_0002_0015_0000@end-highlight@ from 57.66.70.251 is up. Local-ip: 192.168.253.236, gateway name: VPN-to-KN, vpn name: KN, tunnel-id: 2, local tunnel-if: , remote tunnel-ip: Not-Available, Local IKE-ID: 46.24.17.9, Remote IKE-ID: 57.66.70.251, XAUTH username: Not-Applicable, VR id: 0, Traffic-selector: , Traffic-selector local ID: ipv4_subnet(any:0,[0..7]=192.168.10.0/24), Traffic-selector remote ID: ipv4(any:0,[0..3]=10.29.67.108)"
]
},
"sort": [
1485856212927,
1485856212927
]
}
how can I solve that?
best regards
We are getting the Juniper VPN logs but the severity and facility fields are not properly handling them in the dashboard.
For example one of the logs is:
13:00:40.512212 IP (tos 0x0, ttl 64, id 27272, offset 0, flags [none], proto UDP (17), length 1018)
192.168.253.236.514 > 192.168.253.34.5544: [udp sum ok] SYSLOG, length: 990
Facility daemon (3), Severity info (6)
Msg: 1 2017-01-31T10:43:22.607+01:00 SRX-240 kmd 1492 KMD_VPN_UP_ALARM_USER [[email protected] vpn-name="INSTANCE-KN_0002_0015_0000" remote-address="57.66.70.251" local-address="192.168.253.236" gateway-name="VPN-to-KN" group-name="KN" tunnel-id="2" interface-name="" internal-ip="Not-Available" name="46.24.17.9" peer-name="57.66.70.251" client-name="Not-Applicable" vrrp-group-id="0" traffic-selector-name="" traffic-selector-cfg-local-id="ipv4_subnet(any:0,[0..7\]=192.168.10.0/24)" traffic-selector-cfg-remote-id="ipv4(any:0,[0..3\]=10.29.67.108)"] VPN INSTANCE-KN_0002_0015_0000 from 57.66.70.251 is up. Local-ip: 192.168.253.236, gateway name: VPN-to-KN, vpn name: KN, tunnel-id: 2, local tunnel-if: , remote tunnel-ip: Not-Available, Local IKE-ID: 46.24.17.9, Remote IKE-ID: 57.66.70.251, XAUTH username: Not-Applicable, VR id: 0, Traffic-selector: , Traffic-selector local ID: ipv4_subnet(any:0,[0..7]=192.168.10.0/24), Traffic-selector remote ID: ipv4(any:0,[0..3]=10.29.67.108)
In the dashboard the following is received:
{
"_index": "logstash-2017.01.31",
"_type": "syslog",
"_id": "AVnz7os4zazFj2I0A50s",
"_score": null,
"_source": {
"message": "<30>1 2017-01-31T08:35:00.690+01:00 SRX-240 kmd 1492 KMD_VPN_UP_ALARM_USER [[email protected] vpn-name=\"INSTANCE-KN_0002_0015_0000\" remote-address=\"57.66.70.251\" local-address=\"192.168.253.236\" gateway-name=\"VPN-to-KN\" group-name=\"KN\" tunnel-id=\"2\" interface-name=\"\" internal-ip=\"Not-Available\" name=\"46.24.17.9\" peer-name=\"57.66.70.251\" client-name=\"Not-Applicable\" vrrp-group-id=\"0\" traffic-selector-name=\"\" traffic-selector-cfg-local-id=\"ipv4_subnet(any:0,[0..7\\]=192.168.10.0/24)\" traffic-selector-cfg-remote-id=\"ipv4(any:0,[0..3\\]=10.29.67.108)\"] VPN INSTANCE-KN_0002_0015_0000 from 57.66.70.251 is up. Local-ip: 192.168.253.236, gateway name: VPN-to-KN, vpn name: KN, tunnel-id: 2, local tunnel-if: , remote tunnel-ip: Not-Available, Local IKE-ID: 46.24.17.9, Remote IKE-ID: 57.66.70.251, XAUTH username: Not-Applicable, VR id: 0, Traffic-selector: , Traffic-selector local ID: ipv4_subnet(any:0,[0..7]=192.168.10.0/24), Traffic-selector remote ID: ipv4(any:0,[0..3]=10.29.67.108)",
"@version": "1",
"@timestamp": "2017-01-31T09:50:12.927Z",
"type": "syslog",
"host": "192.168.253.236",
"tags": [
"_grokparsefailure_sysloginput"
],
"priority": 0,
"severity": 0,
"facility": 0,
"facility_label": "kernel",
"severity_label": "Emergency"
},
"highlight": {
"message": [
"<30>1 2017-01-31T08:35:00.690+01:00 SRX-240 kmd 1492 @start-highlight@KMD_VPN_UP_ALARM_USER@end-highlight@ [[email protected] vpn-name=\"@start-highlight@INSTANCE@end-highlight@-@start-highlight@KN_0002_0015_0000@end-highlight@\" remote-address=\"57.66.70.251\" local-address=\"192.168.253.236\" gateway-name=\"VPN-to-KN\" group-name=\"KN\" tunnel-id=\"2\" interface-name=\"\" internal-ip=\"Not-Available\" name=\"46.24.17.9\" peer-name=\"57.66.70.251\" client-name=\"Not-Applicable\" vrrp-group-id=\"0\" traffic-selector-name=\"\" traffic-selector-cfg-local-id=\"ipv4_subnet(any:0,[0..7\\]=192.168.10.0/24)\" traffic-selector-cfg-remote-id=\"ipv4(any:0,[0..3\\]=10.29.67.108)\"] VPN @start-highlight@INSTANCE@end-highlight@-@start-highlight@KN_0002_0015_0000@end-highlight@ from 57.66.70.251 is up. Local-ip: 192.168.253.236, gateway name: VPN-to-KN, vpn name: KN, tunnel-id: 2, local tunnel-if: , remote tunnel-ip: Not-Available, Local IKE-ID: 46.24.17.9, Remote IKE-ID: 57.66.70.251, XAUTH username: Not-Applicable, VR id: 0, Traffic-selector: , Traffic-selector local ID: ipv4_subnet(any:0,[0..7]=192.168.10.0/24), Traffic-selector remote ID: ipv4(any:0,[0..3]=10.29.67.108)"
]
},
"sort": [
1485856212927,
1485856212927
]
}
how can I solve that?
best regards