Skip to content

System auth log fixes#14456

Closed
Tacklebox wants to merge 7 commits intomainfrom
mborden/system_auth_log_fixes
Closed

System auth log fixes#14456
Tacklebox wants to merge 7 commits intomainfrom
mborden/system_auth_log_fixes

Conversation

@Tacklebox
Copy link
Copy Markdown
Contributor

@Tacklebox Tacklebox commented Jul 8, 2025

Proposed commit message

This adds a grok pattern and a few replacements to handle previously unmatched fields in some auth log messages.

Checklist

  • I have added an entry to my package's changelog.yml file.

@Tacklebox Tacklebox self-assigned this Jul 8, 2025
@Tacklebox Tacklebox requested a review from a team as a code owner July 8, 2025 17:54
@Tacklebox Tacklebox added the bugfix Pull request that fixes a bug issue label Jul 8, 2025
@Tacklebox Tacklebox requested review from a team as code owners July 8, 2025 17:58
@Tacklebox Tacklebox requested review from belimawr and efd6 July 8, 2025 17:59
target_field: source.address
ignore_missing: true
ignore_failure: true
- rename:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this rename looks like a repeat of line 82's .. intentional? if so, why?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unintentional, thanks!

@andrewkroh andrewkroh added Integration:system System Team:Security-Linux Platform Linux Platform Security team [elastic/sec-linux-platform] labels Jul 8, 2025
@elasticmachine
Copy link
Copy Markdown

Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform)

Copy link
Copy Markdown
Contributor

@nicholasberlin nicholasberlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once CI agrees

Copy link
Copy Markdown
Contributor

@belimawr belimawr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Once CI is green, request a re-review and I'll approve it.

"input": {
"type": "log"
},
"message": "pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=89.160.20.156 user=root",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the message going away? The message should remain IMO to allow for searches on the string (it's indexed as a text-family data type).

It looks like this was already the behavior based on the some other samples, but I think deleting message is the wrong thing to do.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have opened a fix to address this and consolidate the processing logic for journald and logfile inputs. That will make incorporating these PAM parsing enhancements easier for you.

#16542

@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

elastic-vault-github-plugin-prod bot commented Jul 23, 2025

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@Tacklebox Tacklebox force-pushed the mborden/system_auth_log_fixes branch from 926a2fe to 68cb0e5 Compare September 15, 2025 15:15
@elastic-sonarqube
Copy link
Copy Markdown

@botelastic
Copy link
Copy Markdown

botelastic bot commented Oct 15, 2025

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Oct 15, 2025
@Tacklebox Tacklebox force-pushed the mborden/system_auth_log_fixes branch from 68cb0e5 to 6a6bdce Compare October 29, 2025 15:51
@botelastic botelastic bot removed the Stalled label Oct 29, 2025
@elasticmachine
Copy link
Copy Markdown

💔 Build Failed

Failed CI Steps

History

cc @Tacklebox

Comment on lines +605 to +606
"address": "",
"domain": ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove these if when the values are empty.

@botelastic
Copy link
Copy Markdown

botelastic bot commented Dec 7, 2025

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic
Copy link
Copy Markdown

botelastic bot commented Jan 11, 2026

Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Jan 11, 2026
@botelastic
Copy link
Copy Markdown

botelastic bot commented Feb 10, 2026

Hi! This PR has been stale for a while and we're going to close it as part of our cleanup procedure. We appreciate your contribution and would like to apologize if we have not been able to review it, due to the current heavy load of the team. Feel free to re-open this PR if you think it should stay open and is worth rebasing. Thank you for your contribution!

@botelastic botelastic bot closed this Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue Integration:system System Stalled Team:Security-Linux Platform Linux Platform Security team [elastic/sec-linux-platform]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants