Skip to content

Commit 82b68c6

Browse files
author
Suyog Rao
authored
Update asciidocs
1 parent 680430c commit 82b68c6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/logstash/inputs/http_poller.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@
5151
#
5252
# If you have a self signed cert you will need to convert your server's certificate to a valid# `.jks` or `.p12` file. An easy way to do it is to run the following one-liner, substituting your server's URL for the placeholder `MYURL` and `MYPORT`.
5353
#
54-
#....
54+
# [source,ruby]
55+
# ----------------------------------
5556
# openssl s_client -showcerts -connect MYURL:MYPORT </dev/null 2>/dev/null|openssl x509 -outform PEM > downloaded_cert.pem; keytool -import -alias test -file downloaded_cert.pem -keystore downloaded_truststore.jks
56-
#....
57+
# ----------------------------------
5758
#
5859
# The above snippet will create two files `downloaded_cert.pem` and `downloaded_truststore.jks`. You will be prompted to set a password for the `jks` file during this process. To configure logstash use a config like the one that follows.
5960
#
@@ -70,9 +71,9 @@
7071
# interval => 30
7172
# }
7273
#}
74+
# ----------------------------------
7375
#
7476

75-
7677
class LogStash::Inputs::HTTP_Poller < LogStash::Inputs::Base
7778
include LogStash::PluginMixins::HttpClient
7879

0 commit comments

Comments
 (0)