MetricBeat HTTP Module giving "invalid character '<' looking for beginning of value"

Hi,
I am using Metricbeat HTTP module to check the availability of Urls. HTTP module working fine when I tested it with localhost:9200 url.
But when I am using any custom URL it is giving me error.
"invalid character '<' looking for beginning of value"

Below Configuration I am using :

  • module: http
    metricsets:
    • json
      period: 10s
      hosts: ["http://www.google.com"]
      namespace: "json_namespace"
      path: "/"
      #body: ""
      method: "GET"
      #username: "elastic"
      #password: "*****"
      #request.enabled: true
      response.enabled: true
      #json.is_array: true
      #dedot.enabled: true

Can you try performing a GET request to your custom URL from the command line using cURL? Please do this from the same host where you would be running Metricbeat. Is the response you get back valid JSON?

Shaunak

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