As soon as I enable schema.log_namespace
, no events/logs make it through a type: reduce
transform step ... but they do make it through type: remap
!?! Why!?!
#23531
Unanswered
kquinsland
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @kquinsland, please take a look at this guide https://vector.dev/guides/level-up/log_namespace/ (if you haven't already). Enabling the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I am trying to use
vector
to parse thesystem.log
from apache cassandra. The lines insystem.log
are very well formed with one annoying exception. To handle this exception, I have atransforms.cassandra_system_log_merge.type: reduce
.Then, I have a
transforms.cassandra_parser.type: remap
which usesparse_regex()
to give me useful fields.Finally, things are sent off to an elastic search cluster.
That all works. Right up until I turned on
schema.log_namespace
. Then everything stopped working. I was able to figure out why things stopped working ... at least inside theremap
transform. I still don't know why myreduce
transform is broken.Here's the poc config that I've been using:
And here is the content of the
cassandra_parser.ns.vrl
file:The Above Configuration Works but the occasional multi-line log entry is not handled correctly.
Not the end of the world, but it is annoying.
The Problem
I have brief notes in the comments but when I add the the
transform.cassandra_system_log_merge
into the chain, thesinks.cassandra_system_log_json
log file is filled with empty objects, one per line.As soon as I remove
transform.cassandra_system_log_merge
from the chain, thesinks.cassandra_system_log_json
file is populated with the expected data:The Question
The docs for the
reduce
transform say that namespaces change things:But they don't say how things change.
The link to the
Log Namespacing
docs is not helpful either; it's a very brief announcement of the feature and there's aFIXME
at the bottom that says:So what do I need to do so that I can use namespacing and still have the
reduce
transform work?Vector Config
No response
Vector Logs
Nothing significant shows up in the logs.
I am running vector this way:
Beta Was this translation helpful? Give feedback.
All reactions