# How to input response type of "application/yang-data+json" in filebeat httpjson module

**URL:** https://discuss.elastic.co/t/how-to-input-response-type-of-application-yang-data-json-in-filebeat-httpjson-module/355598
**Category:** Beats
**Tags:** elastic-stack-monitoring, filebeat
**Created:** [March 18, 2024, 12:00pm UTC](https://discuss.elastic.co/t/how-to-input-response-type-of-application-yang-data-json-in-filebeat-httpjson-module/355598 "2024-03-18T12:00:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![saxena\_shk7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saxena_shk7/32/132741_2.png) [@saxena\_shk7](https://discuss.elastic.co/u/saxena_shk7)
#### Post date: [March 18, 2024, 12:00pm UTC](https://discuss.elastic.co/t/how-to-input-response-type-of-application-yang-data-json-in-filebeat-httpjson-module/355598/1 "2024-03-18T12:00:39Z")

</div>

I have http URL REST API endpoint which is returning the content-type "application/yang-data+json" and i want to use filebeat httpjson module to take a input from API endpoint and store it into elasticsearch, However the official documentation says httpjson module only support `application/json` and `application/x-www-form-urlencoded` for `request.encode_as` .

I don't want to use logstash.

Is it possible or any alternative is available in filebeat httpjson to get application/yang-data+json as input.

---

<div class="post-metadata">

### Author: ![rtwolfe94022](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rtwolfe94022/32/132253_2.png) [@rtwolfe94022](https://discuss.elastic.co/u/rtwolfe94022)
#### Post date: [March 20, 2024, 4:22am UTC](https://discuss.elastic.co/t/how-to-input-response-type-of-application-yang-data-json-in-filebeat-httpjson-module/355598/2 "2024-03-20T04:22:36Z")

</div>

No, Filebeat's `httpjson` module doesn't natively support `application/yang-data+json`. As workarounds, consider creating a proxy service to re-encode the data as `application/json` or write a custom script to fetch the data and index it directly into Elasticsearch.

---

<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: [April 17, 2024, 6:23am UTC](https://discuss.elastic.co/t/how-to-input-response-type-of-application-yang-data-json-in-filebeat-httpjson-module/355598/3 "2024-04-17T06:23:13Z")

</div>

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