How to use request.ssl in Filebeat httpjson Input

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:

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": Get "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

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