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

Invalid record from journald errors on NetworkManager events #5617

Closed
yaleman opened this issue Dec 19, 2020 · 0 comments · Fixed by #5683
Closed

Invalid record from journald errors on NetworkManager events #5617

yaleman opened this issue Dec 19, 2020 · 0 comments · Fixed by #5683
Assignees
Labels
source: journald Anything `journald` source related type: bug A code related bug.

Comments

@yaleman
Copy link

yaleman commented Dec 19, 2020

Vector Version

vector 0.11.0 (v0.11.0 aarch64-unknown-linux-musl 2020-12-02)

Vector Configuration File

---
sources:
  local_journald:
    type: journald
    current_boot_only: true
    exclude_units: []
    include_units: []
transforms:
  journald_coercer:
    type: coercer
    inputs:
    - journald_remove_fields
    types:
      SYSLOG_FACILITY: bytes

Debug Output

https://gist.github.com/yaleman/29da2505adbd00df97f695d96e9767f9

Expected Behavior

Logs to be processed successfully, I'm happy for the coercer to handle them...

Actual Behavior

Errors in the logs stating vector::internal_events::journald: Invalid record from journald, discarding. error=Error("invalid type: sequence, expected a string", line: 0, column: 0)

Example Data

error logs: https://gist.github.com/yaleman/3f727b1eb133f907ec1c3c268c629f2d

Additional Context

Only NetworkManger events have a SYSLOG_FACILITY that's an array:

"SYSLOG_FACILITY": ["DHCP4", "DHCP6"],

@yaleman yaleman added the type: bug A code related bug. label Dec 19, 2020
@jamtur01 jamtur01 added this to the 2020-12-21 Kryptek Yeti milestone Dec 19, 2020
@bruceg bruceg added the source: journald Anything `journald` source related label Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
source: journald Anything `journald` source related type: bug A code related bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants