# Having an issue with filebeat pushing to Elasticsearch

**URL:** <https://discuss.elastic.co/t/having-an-issue-with-filebeat-pushing-to-elasticsearch/271822>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 30, 2021, 6:05pm UTC](https://discuss.elastic.co/t/having-an-issue-with-filebeat-pushing-to-elasticsearch/271822 "2021-04-30T18:05:38Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![gentle\_ghost](https://avatars.discourse-cdn.com/v4/letter/g/ea5d25/32.png) [@gentle\_ghost](https://discuss.elastic.co/u/gentle_ghost)\
**Post date:** [May 31, 2021, 8:21pm UTC](https://discuss.elastic.co/t/having-an-issue-with-filebeat-pushing-to-elasticsearch/271822/21 "2021-05-31T20:21:03Z")

</div>

Hello,

Here is the mapping without using an index template and just using the ingest pipeline:

```
    "entries" : {
      "type" : "long"

```

Here is the mapping when using a the ingest pipeline + matching index name/index template:

```
    "entries" : {
      "type" : "float",
      "ignore_malformed" : false,
      "coerce" : true

```

The index template is properly set to float. So it appears as you said the issue is the data on ingest. Its being read in as type long even though the ingest pipeline and resulting index template set it to float.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 31, 2021, 9:24pm UTC](https://discuss.elastic.co/t/having-an-issue-with-filebeat-pushing-to-elasticsearch/271822/22 "2021-05-31T21:24:25Z")

</div>

> [@gentle\_ghost](#):
>
> Here is the mapping without using an index template and just using the ingest pipeline:
> 
> ```auto
> "entries" : {
> "type" : "long"
> 
> ```

Actually if you used just the ingest pipeline that tells me the ingest pipeline is resulting in a `long` not a `float`.

> [@gentle\_ghost](#):
>
> So it appears as you said the issue is the data on ingest. Its being read in as type long even though the ingest pipeline and resulting index template set it to float.

So I would say only the index template is set to a `float`.

Which should be fine because a `long` can be written / coerced into a `float` that is set in the template. Neither of these should cause the issue you are seeing above.

I have lost track because I am looking at this issue through a keyhole... are you still getting this error? Do you get it on every log line?

`{"type":"mapper_parsing_exception","reason":"object mapping for [entries] tried to parse field [entries] as object, but found a concrete value"}`

Can you show me a piece of the ingest pipeline that deals with the `entries` field?

Is `entries` a sub object of another field, or is it a top level field

Another suggestion as if this is a critical system and you need an NDA / security and all those other things you could always engage Elastic Professional Services

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 28, 2021, 11:24pm UTC](https://discuss.elastic.co/t/having-an-issue-with-filebeat-pushing-to-elasticsearch/271822/23 "2021-06-28T23:24:47Z")

</div>

Closed on June 28, 2021, 11:24pm UTC

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

[Previous page](https://discuss.elastic.co/t/having-an-issue-with-filebeat-pushing-to-elasticsearch/271822.md?page=1)
