Skip to content

Syslog parsing not getting fields in message #11276

Answered by jszwedko
ilcylic asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ilcylic !

I'm guessing what is happening is:

    ., err = parse_syslog(.message)

Is actually returning an error, causing it to write null to .. I'd add:

if err != null {
  log(err)
}

to confirm.

My second guess is that you don't need to be parsing the incoming event with parse_syslog in VRL because the syslog source already parses the incoming data as syslog data. I would try removing the ., err = parse_syslog(.message) altogether.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ilcylic
Comment options

@jszwedko
Comment options

@ilcylic
Comment options

Answer selected by ilcylic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants