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

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.

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.

1 Like

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