Using all_metrics in log_to_metric transform? #22331
-
Hi, I'm trying to use the log_to_metric transform but all_metrics. Basically I just vector to try to transform my logs to metrics if possible since all the logs will have different metric type counter, gauge, and different fields and metric kind so I won't be able to define them all as they are dynamic. I've tried using it but all_metrics and from the documentation it says "notably the metrics field will be ignored" but it isn't ignored. I tried converting host metrics to logs and then back to metrics but it just uses the fields defined in metrics instead of ignoring it.
This is the output metrics: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @generate-me12, I don't see an
|
Beta Was this translation helpful? Give feedback.
Ah, it should be one or the other. This error you are seeing is probably a bug. Can you please https://github.com/vectordotdev/vector/issues/new?template=bug.yml?
Yes, you can use
component_errors_total
with the tagerror_type: parser_failed
.