# How to pass curl argument in the filebeat.yml file

**URL:** <https://discuss.elastic.co/t/how-to-pass-curl-argument-in-the-filebeat-yml-file/371586>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 6, 2024, 10:18am UTC](https://discuss.elastic.co/t/how-to-pass-curl-argument-in-the-filebeat-yml-file/371586 "2024-12-06T10:18:46Z")\
**Posts on this page:** 1\
**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:** [December 6, 2024, 10:18am UTC](https://discuss.elastic.co/t/how-to-pass-curl-argument-in-the-filebeat-yml-file/371586/1 "2024-12-06T10:18:46Z")

</div>

I have an API end point which fetches traffic statistics from a Network Packet Broker, its curl equivalent command is:  
curl -s -k -X 'POST' '[https://10.0.0.1:8000/stats](https://10.0.0.1:8000/stats)' -H ' accept:application/json' -H 'Authorization: Basic jwdebgfuwibwdb' -H 'Content-Type: application/json' -d '{"port": , "stat\_name":["np\_current\_pass\_rate\_bits"] }'

to convert this command into equivalent filebeat.yml format using httpjson input, how to give -d '{"port": , "stat\_name":["np\_current\_pass\_rate\_bits"] }' argument of the curl command in the filebeat.yml file
