You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Dillon Gilmore (Jira)" <ji...@apache.org> on 2021/04/21 20:49:00 UTC

[jira] [Commented] (CAMEL-16540) Include options to only send message body or headers

    [ https://issues.apache.org/jira/browse/CAMEL-16540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17326908#comment-17326908 ] 

Dillon Gilmore commented on CAMEL-16540:
----------------------------------------

I will be creating a PR shortly.

> Include options to only send message body or headers
> ----------------------------------------------------
>
>                 Key: CAMEL-16540
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16540
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-splunk-hec
>            Reporter: Dillon Gilmore
>            Priority: Major
>
> h2. Problem
> splunk-hec always sends the message body and headers under the static json keys "body" and "headers" respectively.
> h2. Solution
> Include an option that defaults to the current behavior of sending the body and the headers.
> These new options `bodyOnly` and `headersOnly` should send either the body or the headers. If both are true then prefer headers. This also removed the need to create a map with static keys.
> h2. Rationale
>  # Including the headers makes searching more tedious and our queries must always be prefixed with `body.`.
>  # Splunk charged based off of the amount of data you index. Indexing data you don't need can add up an unnecessary bill.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)