mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
parent
112b28149e
commit
19cbe3ed49
1 changed files with 2 additions and 2 deletions
|
@ -208,11 +208,11 @@ bin/logstash -f first-pipeline.conf
|
|||
Try a test query to Elasticsearch based on the fields created by the `grok` filter plugin:
|
||||
|
||||
[source,shell]
|
||||
curl -XGET 'localhost:9200/logstash-$DATE/_search?q=response=401'
|
||||
curl -XGET 'localhost:9200/logstash-$DATE/_search?q=response=200'
|
||||
|
||||
Replace $DATE with the current date, in YYYY.MM.DD format.
|
||||
|
||||
Since our sample has just one 401 HTTP response, we get one hit back:
|
||||
Since our sample has just one 200 HTTP response, we get one hit back:
|
||||
|
||||
[source,json]
|
||||
{"took":2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue