Skip to content

Commit

Permalink
XSUP-46487 - Linux Parsing Rule Update (#38492)
Browse files Browse the repository at this point in the history
* Updated ParsingRules

* Updated ReleaseNotes

* Updated ReleaseNotes
  • Loading branch information
eepstain authored Feb 4, 2025
1 parent 7edf618 commit 011e1f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[INGEST:vendor="linux", product="linux", target_dataset="linux_linux_raw", no_hit=keep]
// Filter applies to log records which contain a full RFC 3339 / ISO 8601 style timestamp with an explicit timezone offset or Zulu time suffix (UTC)
filter _raw_log ~= "\d{4}\-\d{2}\-\d{2}[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?\s*(?:[+-]\d{2}:?\d{2}|Z)"
filter _raw_log ~= "\d{4}\-\d{2}\-\d{2}[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?\s*(?:[+-]\d{2}:?\d{2}|Z)" and _raw_log not contains "kubelet-serving: Certificate expiration"
| alter tmp_json_payload = arrayindex(regextract(_raw_log, "({.+})"), 0) // extract inner json payload from _raw_log if such exists
| alter tmp_timestamp = coalesce( // extract timestamp field from json payload if it exists or the raw text if it does not
tmp_json_payload -> time,
Expand Down
6 changes: 6 additions & 0 deletions Packs/LinuxEventsCollection/ReleaseNotes/1_0_15.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

#### Parsing Rules

##### Linux Events Collection Parsing Rule

- Updated the Linux Events Collection Parsing Rule logic to disregard **kubelet-serving: Certificate expiration** log messages for timestamp ingestion.
2 changes: 1 addition & 1 deletion Packs/LinuxEventsCollection/pack_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Linux Events Collection",
"description": "Linux is an operating system for servers, desktops, cloud, and IoTs",
"support": "xsoar",
"currentVersion": "1.0.14",
"currentVersion": "1.0.15",
"author": "Cortex XSOAR",
"url": "https://www.paloaltonetworks.com/cortex",
"email": "",
Expand Down

0 comments on commit 011e1f7

Please sign in to comment.