# Filebeat httpjson with content type plus beat block

**URL:** https://discuss.elastic.co/t/filebeat-httpjson-with-content-type-plus-beat-block/257131
**Category:** Beats
**Tags:** filebeat
**Created:** [November 30, 2020, 9:48pm UTC](https://discuss.elastic.co/t/filebeat-httpjson-with-content-type-plus-beat-block/257131 "2020-11-30T21:48:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jkaufmanlr](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jkaufmanlr](https://discuss.elastic.co/u/jkaufmanlr)
#### Post date: [November 30, 2020, 9:48pm UTC](https://discuss.elastic.co/t/filebeat-httpjson-with-content-type-plus-beat-block/257131/1 "2020-11-30T21:48:30Z")

</div>

okay I am at a loss, I have a POST api call that has a body and absolutely requires content-type: "application/json"

without the content-type I can get the api to make the call but the json response isn't what I was expecting.

```auto
  url: https://KEY:PASS@APIURL
  interval: 1m
  content_type: "application/json"
  http_request_body:
   {
      "filter": {
     "alerted": false,
     "dateRange": "ALL",

etc.

```

Plus when I run:  
filebeat -e

I get:

```auto
filebeat stopped.
2020-11-30T21:47:19.158Z ERROR instance/beat.go:956 Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).
Exiting: data path already locked by another beat. Please make sure that multiple beats are not sharing the same data path (path.data).

```

I could really use suggestions. output should be logstash

---

<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: [December 28, 2020, 11:48pm UTC](https://discuss.elastic.co/t/filebeat-httpjson-with-content-type-plus-beat-block/257131/2 "2020-12-28T23:48:30Z")

</div>

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