Skip to content

Comments

fix(audiobookshelf): support new [LocalAuth] log format#1684

Open
plague-doctor wants to merge 4 commits intocrowdsecurity:masterfrom
plague-doctor:fix/audiobookshelf-localauth-support
Open

fix(audiobookshelf): support new [LocalAuth] log format#1684
plague-doctor wants to merge 4 commits intocrowdsecurity:masterfrom
plague-doctor:fix/audiobookshelf-localauth-support

Conversation

@plague-doctor
Copy link
Contributor

Description

  • Update parser pattern to match both [Auth] and [LocalAuth]
  • Audiobookshelf changed log format from [Auth] to [LocalAuth]
  • Add test cases for new format (plain text and JSON)
  • Backward compatible with old [Auth] format

Checklist

  • I have read the contributing guide
  • I have tested my changes locally
  • For new parsers or scenarios, tests have been added
  • I have run the hub linter and no issues were reported (see contributing guide)
  • Automated tests are passing
  • AI was used to generate any/all content of this PR

- Update parser pattern to match both [Auth] and [LocalAuth]
- Audiobookshelf changed log format from [Auth] to [LocalAuth]
- Add test cases for new format (plain text and JSON)
- Backward compatible with old [Auth] format
Copy link
Member

@blotus blotus left a comment

Choose a reason for hiding this comment

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

You need to update the parser assertion file as well, otherwise the test will fail (as you've added new lines to the test log file)

Update test assertions to account for 3 new LocalAuth test log entries:
- Update expected log count from 7 to 10
- Update s00-raw assertions for new indices (5-9)
- Add s01-parse assertions for new LocalAuth entries (indices 5-7)
- Update successful login test indices from 5-6 to 8-9
- Update dateparse-enrich count from 5 to 8
- Add dateparse-enrich assertions for new LocalAuth entries
- Fix timestamp precision (.260Z -> .26Z for trailing zero truncation)
@plague-doctor
Copy link
Contributor Author

I hope this will fix the issue.

@plague-doctor plague-doctor requested a review from blotus February 17, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants