My VRL transformation works in playground but does not work locally #23794
-
QuestionI'm running vector with clickhouse in docker compose. For some reason my VRL transform works on vrl playground but not locally. Vector ConfigVector Logsand after that console sink just normally logs the original, non altered messages |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Hi @olekspickle,
When using VRL playground, the input event is specified by the user and it is static. However, events passing through a real pipeline can have many different formats. So different behavior is expected.
Do you see any error logs? Did you also inspect the The console sink is printing the following metric: which should be ingestible by Clickhouse. I noticed a mistake in your config, |
Beta Was this translation helpful? Give feedback.
Good point. So basically,
remapaccepts all event types (logs, metrics, traces) and preserves the event type. Looking at your configuration, theclickhousesink will never receive any events because all the events are metrics (see docs). You can use the metric_to_log transform though.