Filter Logs Before Remap #12274
-
I am trying to eliminate some logs even before remap in the Transforms section. Below example is for Datadog_search but i am happy to use VRL too. Suggest some ideas [transforms.reduce_logs] [transforms.modify] TIA |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
You could chain together multiple filtering components before |
Beta Was this translation helpful? Give feedback.
-
I am not able to filter logs directly from sources. for the below code it is not taking any logs from stdin. if you can share me some sample filters to filter from source it would be helpful [sources.logs] [transforms.reduce_logs] |
Beta Was this translation helpful? Give feedback.
-
my source is not a Json echo "[1649679264] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;stage-kaleidoscope-platform-check;stag-kaleidos-resolveIncidents-lambda-errors-alert;0;Threshold Crossed: 1 out of the last 10 datapoints [0.0 (11/04/22 12:12:00)] was not greater than or equal to the threshold (10.0) (minimum 6 datapoints for ALARM -> OK transition)." | sudo vector --config-toml vector.toml what must be my Filter to filter out from the source now?
|
Beta Was this translation helpful? Give feedback.
-
Thanks @spencergilbert . One last Question from my side . Is it possible to convert Epoch time to Time stamp ? |
Beta Was this translation helpful? Give feedback.
-
Woww ! @jszwedko and @spencergilbert Thanks a lot for your support ! i was able to achieve what i wanted :) |
Beta Was this translation helpful? Give feedback.
You could chain together multiple filtering components before
remap
if you wanted, or use theOR
expression (||
) to chain together multiple VRL expressions in a singlefilter
.