# Unable to index data coming from filebeat to elasticsearch

**URL:** <https://discuss.elastic.co/t/unable-to-index-data-coming-from-filebeat-to-elasticsearch/232474>\
**Category:** Elasticsearch\
**Created:** [May 13, 2020, 3:34pm UTC](https://discuss.elastic.co/t/unable-to-index-data-coming-from-filebeat-to-elasticsearch/232474 "2020-05-13T15:34:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kv\_Karthik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kv_karthik/32/68273_2.png) [@Kv\_Karthik](https://discuss.elastic.co/u/Kv_Karthik)\
**Post date:** [May 13, 2020, 3:34pm UTC](https://discuss.elastic.co/t/unable-to-index-data-coming-from-filebeat-to-elasticsearch/232474/1 "2020-05-13T15:34:11Z")

</div>

Hi,  
The problem i am facing is as follows,  
I developed a config file for the logstash and indexed the event to elastic and everything was working as expected, but when I added file beat as the input, I am unable to index the event into the elastic, because of the additional data from filebeat.

I am not interested in most of the data that is added by the file beat.  
Note: If I output the data to stdout, it works as expected but when i try to send the same output to elastic I get the error mentioned below,

Also interested to know is there a way to supress all the data coming from filebeat?

```auto
{
                "tags" => [
        [0] "beats_input_codec_plain_applied"
    ],
           "log_level" => "INFO",
          "time_taken" => 0.247,
          "@timestamp" => 2020-05-13T15:28:55.000Z,
              "source" => "C:\\logs\\data_pipeline.log",
             "message" => "2020-05-13 17:28:55 # data_pipeline# INFO # 0.247 # seconds to update the chunks to oracle DB",
    "application_name" => "data_pipeline",
                 "msg" => "0.247 # seconds to update the chunks to oracle DB",
               "input" => {
        "type" => "log"
    },
                "host" => {
        "name" => "MYHOSTNAME"
    },
            "@version" => "1",
          "prospector" => {
        "type" => "log"
    },
              "offset" => 389198
}
[2020-05-13T17:29:08,722][WARN][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>["index", {:_id=>nil, :_index=>"logstash-2020.05.13", :_type=>"doc", :routing=>nil}, #<LogStash::Even
t:0x9dce0e4>], :response=>{"index"=>{"_index"=>"logstash-2020.05.13", "_type"=>"doc", "_id"=>"iN2nDnIBp3N7K5qGXCBu", "status"=>400, "error"=>{"type"=>"mapper_parsing_exception", "reason"=>"failed to parse field [host] of type [tex
t]", "caused_by"=>{"type"=>"illegal_state_exception", "reason"=>"Can't get text on a START_OBJECT at 1:501"}}}}}

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 13, 2020, 11:02pm UTC](https://discuss.elastic.co/t/unable-to-index-data-coming-from-filebeat-to-elasticsearch/232474/2 "2020-05-13T23:02:26Z")

</div>

Is there a question here?

---

<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 10, 2020, 11:02pm UTC](https://discuss.elastic.co/t/unable-to-index-data-coming-from-filebeat-to-elasticsearch/232474/3 "2020-06-10T23:02:27Z")

</div>

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