Hi,
Thank you for the reply.
This is my logstash config file:
input {
http_poller {
urls => {
url => "https://dev68751.service-now.com"
}
request_timeout => 60
#proxy => { host => "0.0.0.0" port => "443" scheme => "http"}
schedule => { cron => "* * * * * UTC"}
metadata_target => "http_poller_metadata"
codec => "json"
user => "admin"
password => "*****@"
}
}
output {
stdout {
codec => rubydebug
}
}
The output I am getting.
.base');\nvar $targets = angular.element('*[concourse-compilation-target]');\nvar bootstrapModule = angular.module('appBootstrap', window.NOW.ngLoadModules);\nangular.bootstrap(document.documentElement, [bootstrapModule.name]);\nscheduleCompilation($targets);\n}\nangular.element(document).ready(function() {\nsetTimeout(bootstrap)\n});\n})(angular, window);\n;\n</script></body></html>",
"tags" => [
[0] "_jsonparsefailure"
],
"http_poller_metadata" => {
"times_retried" => 0,
"host" => "tahseen",
"response_headers" => {
"expires" => "0",
"date" => "Fri, 07 Feb 2020 06:40:51 GMT",
"pragma" => "no-store,no-cache",
"x-frame-options" => "SAMEORIGIN",
"content-type" => "text/html;charset=UTF-8",
"x-is-logged-in" => "false",
"strict-transport-security" => "max-age=63072000; includeSubDomains",
"x-transaction-id" => "f0602b7ddb76",
"server" => "ServiceNow",
"referrer-policy" => "same-origin",
"cache-control" => "no-cache,no-store,must-revalidate,max-age=-1",
"transfer-encoding" => "chunked",
"set-cookie" => [
[0] "JSESSIONID=817CE4D2BCCD20095554E7EB311FA0E8; Path=/; HttpOnly;Secure",
[1] "glide_user=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly;Secure",
[2] "glide_user_session=; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly;Secure",
[3] "glide_user_route=glide.d0049332062fb78bdaadecdaf9983d3c; Max-Age=2147483647; Expires=Wed, 25-Feb-2088 09:54:58 GMT; Path=/; HttpOnly;Secure",
[4] "BIGipServerpool_dev68751=192960522.64064.0000; path=/; Httponly; Secure"
]
},
"response_message" => "OK",
"runtime_seconds" => 2.023368,
"name" => "url",
"request" => {
"url" => "https://dev68751.service-now.com",
"method" => "get"
},
"code" => 200
}
}
Why it is giving "_jsonparsefailure"
Kindly help.
Thanks,
Tahseen