Here is my logstash.conf
:
input {
http {
host => "127.0.0.1"
port => 31311
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
}
stdout {
codec => "rubydebug"
}
}
As a test, I ran this command in PowerShell
:
C:\Users\Me\Downloads\curl-7.64.1-win64-mingw\bin> .\curl.exe -XPUT "http://127.0.0.1:31311/customer?pretty"
On my Logstash
console, as expected, I saw the following output:
{
"@timestamp" => 2019-04-08T13:45:40.267Z,
"headers" => {
"http_host" => "127.0.0.1:31311",
"http_user_agent" => "curl/7.64.1",
"request_path" => "/customer?pretty",
"content_length" => "0",
"request_method" => "PUT",
"http_version" => "HTTP/1.1",
"http_accept" => "*/*"
},
"host" => "127.0.0.1",
"@version" => "1",
"message" => ""
}
I then ran the following command:
C:\Users\Me\Downloads\curl-7.64.1-win64-mingw\bin> .\curl.exe -XGET "http://127.0.0.1:9200/_cat/indices?v"
I expected to see that the customer
index had also been created on my ES server; however, all I saw was
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
with an empty set of results.
What am I missing?