Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cisco_aironet] Properly parse CLIENT_ORCH_LOG-6-CLIENT_ADDED_TO_RUN_STATE messages #12975

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/cisco_aironet/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.15.2"
changes:
- description: Properly parse 'CLIENT_ORCH_LOG-6-CLIENT_ADDED_TO_RUN_STATE' log messages
type: bugfix
link: https://github.com/elastic/integrations/pull/12975
- version: "1.15.1"
changes:
- description: Updated SSL description to be uniform and to include links to documentation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<132>WLC001: *bcastReceiveTask: Aug 20 14:55:28.577: %BCAST-4-MLD_INVALID_IPV6_PKT: bcastMld.c:2594 Received IPV6 packet which is not a valid MLD packet
<132>WLC001: *apfReceiveTask: Aug 22 10:24:20.959: %APF-4-MOBILESTATION_NOT_FOUND: apf_ms.c:8467 Could not find the mobile cc:73:14:61:b0:8f in internal database
<190>201477: Jan 4 17:25:42.866: %CLIENT_ORCH_LOG-6-CLIENT_ADDED_TO_RUN_STATE: Chassis 2 R0/0: wncd: Username entry (00-00-00-00-00-00) joined with ssid (System-110) for device with MAC: 0000.0000.0000
<190>201477: Jan 4 17:25:42.866: %CLIENT_ORCH_LOG-6-CLIENT_ADDED_TO_RUN_STATE: Chassis 1 R0/0: wncd: Username entry (RND-UN) joined with ssid (System-110) for device with MAC: abcd.ef12.3456
<132>WLC001: *spamReceiveTask: Dec 17 19:59:10.223: %LOG-3-Q_IND: mm_aplist.c:734 Could not delete an AP from the AP list.
<132>WLC001: *spamApTask4: Jun 08 04:26:43.773: %LOG-3-Q_IND: spam_lrad.c:11366 Country code (CN ) not configured for AP 6c:99:89:b0:XX:XX[…It occurred 2 times.!]
<132>WLC001: *emWeb: Jan 22 11:42:50.501: %LOG-3-Q_IND: spam_lrad.c:52448 The system is unable to find WLAN 1 to be deleted; AP XX:XX:XX:XX:XX:XX[...It occurred 3 times.!]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,12 @@
},
{
"@timestamp": "2025-01-04T17:25:42.866Z",
"cisco": {
"ssid": "System-110"
},
"client": {
"mac": "00-00-00-00-00-00"
},
"ecs": {
"version": "8.17.0"
},
Expand All @@ -1241,7 +1247,47 @@
"message": "Chassis 2 R0/0: wncd: Username entry (00-00-00-00-00-00) joined with ssid (System-110) for device with MAC: 0000.0000.0000",
"tags": [
"preserve_original_event"
]
],
"user": {
"name": "00-00-00-00-00-00"
}
},
{
"@timestamp": "2025-01-04T17:25:42.866Z",
"cisco": {
"ssid": "System-110"
},
"client": {
"mac": "AB-CD-EF-12-34-56"
},
"ecs": {
"version": "8.17.0"
},
"event": {
"action": "CLIENT_ADDED_TO_RUN_STATE",
"original": "<190>201477: Jan 4 17:25:42.866: %CLIENT_ORCH_LOG-6-CLIENT_ADDED_TO_RUN_STATE: Chassis 1 R0/0: wncd: Username entry (RND-UN) joined with ssid (System-110) for device with MAC: abcd.ef12.3456",
"provider": "CLIENT_ORCH_LOG",
"severity": 6
},
"log": {
"level": "informational",
"syslog": {
"facility": {
"code": 23
},
"priority": 190,
"severity": {
"code": 6
}
}
},
"message": "Chassis 1 R0/0: wncd: Username entry (RND-UN) joined with ssid (System-110) for device with MAC: abcd.ef12.3456",
"tags": [
"preserve_original_event"
],
"user": {
"name": "RND-UN"
}
},
{
"@timestamp": "2025-12-17T19:59:10.223Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ processors:
patterns:
- "STA\\(Target MAC Address\\) \\[%{MAC:client.mac}.*?\\] %{DATA:event.reason}\\(Source IP Address\\) %{IP:client.ip}%{DATA}\\(Destination IP Address\\) %{IP:server.ip}"
ignore_failure: false
- grok:
description: CLIENT_ORCH_LOG-6-CLIENT_ADDED_TO_RUN_STATE
field: message
if: ctx._temp_?.reason == 'CLIENT_ORCH_LOG-6-CLIENT_ADDED_TO_RUN_STATE'
patterns:
- "R0/0: wncd: Username entry \\(%{DATA:user.name}\\) joined with ssid \\(%{DATA:cisco.ssid}\\) for device with MAC: %{MAC:client.mac}"
ignore_failure: false
###
# Client MAC
- grok:
Expand All @@ -234,6 +241,18 @@ processors:
pattern: '[:.]'
replacement: '-'
ignore_missing: true
- script:
lang: painless
if: ctx.client?.mac != null
description: 'Convert Cisco style mac to standard format (XXXX-XXXX-XXXX to XX-XX-XX-XX-XX-XX)'
source: |
def mac = ctx.client.mac;
def pattern = /^[A-F0-9]{4}(-[A-F0-9]{4}){2}$/;
def matcher = pattern.matcher(mac);
if (matcher.matches()) {
ctx.client.mac = mac.substring(0,2) + "-" + mac.substring(2,4) + "-" + mac.substring(5,7) + "-" + mac.substring(7,9) + "-" + mac.substring(10,12) + "-" + mac.substring(12,14);
}

- uppercase:
field: source.mac
ignore_missing: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@
- name: cisco.eapol.version
type: short
description: Cisco eapol version
- name: cisco.ssid
type: keyword
description: Cisco SSID
1 change: 1 addition & 0 deletions packages/cisco_aironet/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ An example event for `log` looks as following:
| cisco.eapol.type | Cisco eapol type | short |
| cisco.eapol.version | Cisco eapol version | short |
| cisco.interface.type | Cisco interface type | keyword |
| cisco.ssid | Cisco SSID | keyword |
| cisco.wps.channel | Cisco WPS channel | short |
| cisco.wps.hits | Cisco WPS hits | short |
| cisco.wps.preced | Cisco WPS precedence | short |
Expand Down
2 changes: 1 addition & 1 deletion packages/cisco_aironet/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: "3.0.3"
name: cisco_aironet
title: "Cisco Aironet"
version: "1.15.1"
version: "1.15.2"
description: "Integration for Cisco Aironet WLC Logs"
type: integration
categories:
Expand Down