-
Hi, this is probably something really obvious, but I'm not seeing it. Hopefully it's not just a stupid typo like my last question. ;) I've got a configuration going where I have syslogd running on a machine, outputting to both a file and to localhost port 8514. Relevant config snippets follow:
Now here's where things get a little weird. When I get a message directly from syslog, vector produces only the following output (tcpdump for completeness):
When I then paste the very same line back into the syslog with the 'logger' util:
Is there something about the way the parse_syslog() function works that the format of my log file isn't playing nicely with? What's the best way to solve this? Write my own regex in VRL? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @ilcylic ! I'm guessing what is happening is:
Is actually returning an error, causing it to write
to confirm. My second guess is that you don't need to be parsing the incoming event with |
Beta Was this translation helpful? Give feedback.
Hi @ilcylic !
I'm guessing what is happening is:
Is actually returning an error, causing it to write
null
to.
. I'd add:to confirm.
My second guess is that you don't need to be parsing the incoming event with
parse_syslog
in VRL because thesyslog
source already parses the incoming data as syslog data. I would try removing the., err = parse_syslog(.message)
altogether.