Skip to content

Commit

Permalink
Add failure handling to ingest pipelines. (#2896)
Browse files Browse the repository at this point in the history
Avoid unexpected infinite retries on pipeline failures due to internal
callback handling, by defining failure handling on pipelines.

closes #2880
  • Loading branch information
simitt authored Nov 13, 2019
1 parent f4c827d commit c21d3f8
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ingest/pipeline/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"user_agent" : {
"field": "user_agent.original",
"target_field": "user_agent",
"ignore_missing": true
"ignore_missing": true,
"ignore_failure": true
}
}
]
Expand All @@ -42,7 +43,16 @@
"database_file": "GeoLite2-City.mmdb",
"field": "client.ip",
"target_field": "client.geo",
"ignore_missing": true
"ignore_missing": true,
"on_failure": [
{
"remove": {
"field": "client.ip",
"ignore_missing": true,
"ignore_failure": true
}
}
]
}
}
]
Expand Down

0 comments on commit c21d3f8

Please sign in to comment.