Skip to content

Conversation

itkovian
Copy link
Contributor

Allows giving priority to the older RFC 3164 over the newer RFC 5424. Defaults to the original behaviour of using the newer format over the older.

This PR address #1043.

Allows giving priority to the older RFC 3164 over the newer RFC 5424.
Defaults to the original behaviour of using the newer format over the
older.
@itkovian itkovian marked this pull request as draft September 25, 2024 13:10
@itkovian itkovian marked this pull request as ready for review November 21, 2024 15:50
Copy link
Member

@pront pront left a comment

Choose a reason for hiding this comment

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

Hi @itkovian, overall this looks good but please undo the formatting changes so that it is easier to review.

@pront pront added the meta: awaiting author Pull requests that are awaiting their author. label Mar 4, 2025
@itkovian itkovian force-pushed the parse-syslog-force-format branch from 91535e8 to dac266f Compare May 7, 2025 14:56
@itkovian itkovian force-pushed the parse-syslog-force-format branch from e670d8e to 42a78be Compare May 7, 2025 20:48
@itkovian itkovian force-pushed the parse-syslog-force-format branch from f5ddf86 to 1d24034 Compare May 8, 2025 09:25
@itkovian itkovian force-pushed the parse-syslog-force-format branch from 1d24034 to 9e2d37b Compare May 8, 2025 09:26
@itkovian
Copy link
Contributor Author

itkovian commented May 8, 2025

@pront Formatting addressed.

Copy link
Member

@pront pront left a comment

Choose a reason for hiding this comment

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

Hi @itkovian, this looks good. Please add a changelog entry and address the failing checks.

@itkovian
Copy link
Contributor Author

@pront If I want fmt to succeed, the formatting will change (at least on my machine).

strip-ansi-escapes = { version = "0.2", optional = true }
snap = { version = "1", optional = true }
syslog_loose = { version = "0.21", optional = true }
syslog_loose = { git = "https://github.com/itkovian/syslog-loose", rev = "72bb2608ff942112d688626143b9bf8187a2f24f", optional = true }
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you submit this as a PR to the original repo please. I'll look into it asap..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, but it's not really doing what you want as mentioned in StephenWakely/syslog-loose#37 I think.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see. Yeah we can't really just remove structured data for 3164, that would be quite a breaking change. Despite not being strictly in the spec, there are systems such as rsyslog that push out 3164 messages with structured data. The joys of syslog!

I realise this issue has been outstanding for a while now, so I'll see if I can get some time to bump it up.

Copy link
Contributor

Choose a reason for hiding this comment

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

This should be good with version 0.22 of syslog_loose now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll try and change this asap. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta: awaiting author Pull requests that are awaiting their author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants