sivasamyk / graylog2-plugin-input-httpmonitor

HTTP Monitor plugin for graylog
MIT License
42 stars 7 forks source link

Unable to see HTTP input on 1.3.3 #2

Closed hikarukujo closed 8 years ago

hikarukujo commented 8 years ago

Graylog-server 1.3.3 seems to be incompatible with the input plugin 1.0.2. There is no additional input type listed in the menu when loading the 1.0.2 jar file into plugins.

sivasamyk commented 8 years ago

I am not able to download 1.3.3 graylog server to reproduce this issue ( download is stuck at 99.9 % ). Can you let me know if you are seeing any exceptions in graylog server logs?

sivasamyk commented 8 years ago

I am able to see 'HTTP Monitor' option listed in 1.3.3 server Inputs UI. Let me know the contents of the graylog server logs. Are you seeing something like this in graylog logs?

Loaded plugins: [Anonymous Usage Statistics 1.2.1 [org.graylog.plugins.usagestatistics.UsageStatsPlugin], HttpMonitorInput 1.0.2 [org.graylog2.plugin.httpmonitor.HttpMonitorInputPlugin]]

hikarukujo commented 8 years ago

Sorry, was out of the office and unable to test. In the grand scheme of things, it ended up being user permissions and nothing more. My apologies for the false issue report, works great!

I am wondering if there's a way to put a java key file in there so I can run the input against SSL sites? If not I'm okay running it against HTTP and just watching for the 302 response to go to SSL.

sivasamyk commented 8 years ago

If you want to connect to HTTPS URLs, giving the direct https URL should work. e.g. https://www.google.com instead of http://www.google.com

hikarukujo commented 8 years ago

I get "Request failed :java.net.ConnectException: General SSLEngine problem" as a reply, and I know the certs work because they pass validation in the browser and using openssl. Not sure if it's that the JVM is missing the root CAs in the trust store.

sivasamyk commented 8 years ago

I have updated the plugin to accept all certs. Download the latest jar from https://github.com/sivasamyk/graylog2-plugin-input-httpmonitor/releases/download/v1.0.2/graylog2-plugin-input-httpmonitor-1.0.2.jar and let me know if it solves your problem.

hikarukujo commented 8 years ago

That did it, getting 200 responses now. Thanks for your help!