Hi
I haven't tried this before. I am trying to send jenkins build data to elastic search. I am seeing some error.
Elastic stack : 7.2
My jenkins url response is like this.
{
"_class" : "hudson.model.FreeStyleBuild",
"actions" : [
{
"_class" : "hudson.model.ParametersAction",
"parameters" : [
{
"_class" : "hudson.model.StringParameterValue",
"name" : "BUILDNUMBER",
"value" : "12571"
}
]
},
{
"_class" : "hudson.model.CauseAction"
},
{
"_class" : "jenkins.metrics.impl.TimeInQueueAction"
},
{
},
{
},
{
},
{
},
{
},
{
},
{
}
],
"building" : false,
"result" : "SUCCESS",
"timestamp" : 1564313909399,
"url" : "https://master.example.com/job/Federated_Install_10.8/lastBuild/api/json?depth=0&pretty=true&tree=building,duration,result,url,actions[parameters]"
}
I want to send these build parameters to elastic search
"name" : "BUILDNUMBER",
"value" : "12571"
"building" : false,
"result" : "SUCCESS",
"timestamp" : 1564313909399,
"url" : "https://master.example.com/job/Federated_Install_10.8/123"
I am seeing this error when I configured my url in to metricbeat http module. You can see this in the images attached. But I am not seeing the data what I am expecting.
**t** error.message invalid character '<' looking for beginning of value
Here is my http.yml configuration. Please suggest if I need to modify or update my configuration.
- module: http
metricsets:
- json
period: 10s
hosts: ["master.example.com"]
namespace: "json_test"
path: "/job/Federated_Install/lastBuild/api/json?depth=0&username=user&password=********&pretty=true&tree=building,duration,result,timestamp,url"
#body: ""
method: "GET"