[ 
https://issues.apache.org/jira/browse/NIFI-11274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Doran updated NIFI-11274:
-------------------------------
    Fix Version/s: 2.0.0
                   1.21.0
                       (was: 1.latest)
                       (was: 2.latest)
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> PutElasticsearchRecord should only add @timestamp field if not null
> -------------------------------------------------------------------
>
>                 Key: NIFI-11274
>                 URL: https://issues.apache.org/jira/browse/NIFI-11274
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.20.0
>            Reporter: Chris Sampson
>            Assignee: Chris Sampson
>            Priority: Minor
>             Fix For: 2.0.0, 1.21.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The {{PutElasticsearchRecord}} processor optionally allows users to configure 
> an {{@timestamp}} field using a RecordPath or specified value. When these are 
> not set or the configuration results in a {{null}} value, the processor 
> currently adds a {{"@timestamp": null}} field to the document being sent to 
> Elasticsearch.
> While {{null}}/empty fields can be suppressed by the 
> {{ElasticSearchClientServiceImpl}}, this is not always the wanted 
> configuration. NiFi shouldn't always add the {{@timestamp}} field to the 
> document before sending because with "null suppression" disabled in the 
> controller service, the unwanted/unexpected field will be created and sent to 
> Elasticsearch.
> The {{@timestamp}} field was added to support Data Streams within 
> Elasticsearch. For such data storage, the field will be necessary but for 
> other "normal" indices, the field is likely not wanted (even set to {{null}}).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to