Skip to content

Remap transform skips parsing for nginx "upstream info" logs (only "error" logs processed) #23092

Answered by satellite-no
amimez asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

The logs are not being dropped because you have not set it to drop logs on failure so its failing to parse the log and passing it along as is. The issue it tells you is at one of the two parse_regex functions.

To drop the logs update your transform to the below and it wont get passed on and will go out a different 'path' ref. If you add this and tap the output of this route Vector will add metadata about why the log was dropped and help you fix the issue.

transforms:
   restructure_logs:
     type: remap
     drop_on_error: true
     reroute_dropped: true
     inputs:
       - otlp.logs
     source:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pront
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
transform: remap Anything `remap` transform related
2 participants