mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Do not conditionally gate remove processor (#141310)
This commit is contained in:
parent
28924818e4
commit
d45ab6dbaa
1 changed files with 10 additions and 27 deletions
|
@ -150,29 +150,6 @@ export const createIndexPipelineDefinitions = (
|
|||
tag: 'remove_replacement_chars',
|
||||
},
|
||||
},
|
||||
{
|
||||
remove: {
|
||||
field: [
|
||||
'_attachment',
|
||||
'_attachment_indexed_chars',
|
||||
'_extracted_attachment',
|
||||
'_extract_binary_content',
|
||||
],
|
||||
if: 'ctx?._extract_binary_content == true',
|
||||
ignore_missing: true,
|
||||
on_failure: [
|
||||
{
|
||||
append: {
|
||||
field: '_ingestion_errors',
|
||||
value: [
|
||||
"Processor 'remove' with tag 'remove_attachment_fields' in pipeline '{{ _ingest.on_failure_pipeline }}' failed with message '{{ _ingest.on_failure_message }}'",
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
tag: 'remove_attachment_fields',
|
||||
},
|
||||
},
|
||||
{
|
||||
gsub: {
|
||||
field: 'body',
|
||||
|
@ -212,20 +189,26 @@ export const createIndexPipelineDefinitions = (
|
|||
},
|
||||
{
|
||||
remove: {
|
||||
field: ['_reduce_whitespace'],
|
||||
if: 'ctx?._reduce_whitespace == true',
|
||||
field: [
|
||||
'_attachment',
|
||||
'_attachment_indexed_chars',
|
||||
'_extracted_attachment',
|
||||
'_extract_binary_content',
|
||||
'_reduce_whitespace',
|
||||
'_run_ml_inference',
|
||||
],
|
||||
ignore_missing: true,
|
||||
on_failure: [
|
||||
{
|
||||
append: {
|
||||
field: '_ingestion_errors',
|
||||
value: [
|
||||
"Processor 'remove' with tag 'remove_whitespace_fields' in pipeline '{{ _ingest.on_failure_pipeline }}' failed with message '{{ _ingest.on_failure_message }}'",
|
||||
"Processor 'remove' with tag 'remove_meta_fields' in pipeline '{{ _ingest.on_failure_pipeline }}' failed with message '{{ _ingest.on_failure_message }}'",
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
tag: 'remove_whitespace_fields',
|
||||
tag: 'remove_meta_fields',
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue