Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Sending Logs to splunk from logstash

$
0
0
Hi i am trying to send logs to splunk with HEC using logstash, but configuration is not working. A curl from the server is working but logs arent going through logstaash. curl -k "https://splunk-hec.test.egmonitoring.expedia.com:443/services/collector/raw?" \ -H "Authorization: Splunk XXXX" \ -d '{"event": "Hello!", "sourceType": "Test"}' Logstash output config ----------- http { http_method => "post" url => "https://splunk-hec.test.egmonitoring.expedia.com:443/services/collector/event/1.0" headers => ['Authorization', 'Splunk XXXXX'] mapping => { "sourcetype" => "logstash" } } Error ---- [HTTP Output Failure] Could not fetch URL {:url=>"https//splunk-hec.test.egmonitoring.expedia.com:443/services/collector/event/1.0", :method=>:post, :body=>"{\"sourcetype\":\"logstash\"}", :headers=>{"Authorization"=>"Splunk XXX", :message=>"connect timed out",

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>