# How to use request.ssl in Filebeat httpjson Input

**URL:** <https://discuss.elastic.co/t/how-to-use-request-ssl-in-filebeat-httpjson-input/325966>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [February 20, 2023, 11:35am UTC](https://discuss.elastic.co/t/how-to-use-request-ssl-in-filebeat-httpjson-input/325966 "2023-02-20T11:35:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuswanul](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuswanul/32/101662_2.png) [@yuswanul](https://discuss.elastic.co/u/yuswanul)\
**Post date:** [February 20, 2023, 11:35am UTC](https://discuss.elastic.co/t/how-to-use-request-ssl-in-filebeat-httpjson-input/325966/1 "2023-02-20T11:35:50Z")

</div>

Hi there, i want to know how using request.ssl in Filebeat input on httpjson type. So, here's an overview of the config I made:

```auto
filebeat.inputs:
- type: httpjson
  config_version: 2
  request.url: https://192.168.0.217:8001/audit/requests
  request.ssl:
   - verification_mode: "none"
  request.transforms:
    - set:
        target: header.Kong-Admin-Token
        value: 'xxxxxxxx'
  response.split:
    target: body.data
    type: array

```

i use this config to fetch audit log from kong. but when i restart the filebeat, i'm getting error like this

> ERROR [input.httpjson-stateless] v2/input.go:115 Error while processing http request: failed to execute http client.Do: failed to execute http client.Do: Get "[https://192.168.0.217:8001/audit/requests](https://192.168.0.217:8001/audit/requests)": Get "[https://192.168.0.217:8001/audit/requests](https://192.168.0.217:8001/audit/requests)": x509: certificate signed by unknown authority

at first, i think if i'm adding a _ **request.ssl** _ parameter, it will bypass ssl verification but apparently not. anyone know what parameter should i define in my config so my filebeat can fetch audit log from kong? your help will mean a lot

Thanks

---

<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:** [March 20, 2023, 1:35pm UTC](https://discuss.elastic.co/t/how-to-use-request-ssl-in-filebeat-httpjson-input/325966/2 "2023-03-20T13:35:57Z")

</div>

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