Skip to content

With log pipelines, is there a way to use a different field if one field is not available? #6439

Answered by shuiyisong
jerrac asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, jerrac
First off, you can use the ignore_missing option to continue the process without breaking and returning an error.
Secondly, we don't have a pick-one-valid-from-an-array processor or mechanism. This can surely be done in a vrl script. But this is an interesting idea, we might need to do some investigation to see if there exists a general idea to form a processor.

However, you can try to use a workaround. With ignore_missing added, rename the output of the date processor to timestamp. In this case, if date processor outputs the result, it overrides the timestamp and is used in the result; otherwise the processor is skipped and the original timestamp is used. This is also possible…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jerrac
Comment options

@jerrac
Comment options

Answer selected by jerrac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants