Deliberately fail event in logstash to requeue it

Hi

Is there a way to fail an event so that it can be requeued for processing later? Let's take this conf for example:

input {
  pipeline {
    address => "previous-pipe"
  }
}

filter {
  elasticsearch {
    hosts => [ "es-analytics:9200" ]
    index => "my-index"
    query => "resource.id:%{[patient][managingOrganization]}"
    fields => {
      "[resource][id]" => "[facility][id]"
    }
  }
}

output {
  #blah blah
}

So in this case, I want to enrich a document with an ES query, but it's possible that the resource I'm querying might not have been saved yet so my query won't return anything. So I would like to be able to requeue the event so that it can try again until it is successful.

So, is this possible or is there a better way to do this?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.