I thank you in advance for your support.
I am developing my pipeline that fetches data from DB and sends it to an EndPoint HTTP Post
The input works fine, but I am having problems in my output, it does not get to send the values by the post request. I have tried in many ways and I can not get to enter parameters in the post
input {
jdbc {
jdbc_driver_library => "C:\03_ELK\logstash\drivers\ojdbc6-11.2.0.3.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
jdbc_connection_string => "jdbc:oracle:thin:@localhost2:1521:orcl"
jdbc_user => "***"
jdbc_password => "++++"
parameters => { }
schedule => " * * * * UTC"
statement => "select TX_NOMBRE from tmt005_usuario"
}
}
filter {
json {
source => "message"
}
}
output {
http {
format=>"message"
content_type => "application/json"
http_method => "post"
url => "https://ukv97792.live.dynatrace.com/api/v1/entity/infrastructure/custom/custom:siteds.jobs.prueba01?Api-Token=fsfdgsfdgsdfgsfdg"
message => "{
'type':'TipoPrueba01',
'series':{
'timeseriesId' : 'custom:siteds.jobs.prueba01',
'dimensions' : {
'DimensionPrueba01' : 'prueba01d'
},
'dataPoints' : [
[ 1600707299000, 10 ]
]
}
}"
}
stdout { codec => rubydebug }
}
I have worked it in logstash and it works.
Logserrors01:
Logserrors01: