Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix examples for changes in #2167 #2400

Merged
merged 1 commit into from
Aug 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions packetbeat/docs/filtering.asciidoc
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
== Kibana Queries and Filters

In Kibana, you can filter transactions either by entering a search query or by clicking on elements within a visualization.
In Kibana, you can filter transactions either by entering a search query or by clicking on elements within a visualization.

[float]
=== Creating Queries

The search field on the *Discover* page provides a way to query
The search field on the *Discover* page provides a way to query
a specific subset of transactions from the selected time frame.
The query syntax is based on the
http://lucene.apache.org/core/3_5_0/queryparsersyntax.html[Lucene query syntax].
It allows boolean operators, wildcards, and field filtering. For example, if
The query syntax is based on the
http://lucene.apache.org/core/3_5_0/queryparsersyntax.html[Lucene query syntax].
It allows boolean operators, wildcards, and field filtering. For example, if
you want to find the HTTP redirects, you can search for
`type: http AND http.code: 302`.
`type: http AND http.response.code: 302`.

image:./images/kibana-query-filtering.png[Kibana query]

Expand All @@ -35,7 +35,7 @@ To search for all the transactions that contain the following message:
"Cannot change the info of a user"
------------------------------------

NOTE: To search for an exact string, you need to wrap the string in double quotation
NOTE: To search for an exact string, you need to wrap the string in double quotation
marks. Without quotation marks, the search in the example would match any documents containing one of the following words: "Cannot" OR "change" OR "the" OR "info" OR "a" OR "user".

To search for all transactions with the "chunked" encoding:
Expand Down Expand Up @@ -76,11 +76,11 @@ mysql.method: INSERT
==== Regexp Queries

Kibana supports regular expression for filters and expressions. For example,
to search for all HTTP responses with JSON as the returned value type:
to search for all HTTP responses with JSON as the returned value type:

[source,yaml]
-------------------------
http.content_type: *json
http.response.headers["content-type"]: *json
-------------------------

See
Expand Down Expand Up @@ -150,7 +150,7 @@ exclude the HTTP redirects coming from the IP and port, click the icons highligh

image:./images/filter_from_context.png[Filter from context]

The selected filters appear under the search box.
The selected filters appear under the search box.

image:./images/kibana-filters.png[Kibana filters]

8 changes: 4 additions & 4 deletions packetbeat/docs/packetbeat-filtering.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ deprecated[5.0.0-alpha4,The `filters` section is being renamed to `processors` i
filters:
- drop_event:
equals:
http.code: 200
http.response.code: 200
-----------

added[5.0.0-alpha5,Begin using the following configuration starting with 5.0.0-alpha5]
Expand All @@ -61,7 +61,7 @@ processors:
- drop_event:
when:
equals:
http.code: 200
http.response.code: 200
-----------


Expand All @@ -74,7 +74,7 @@ deprecated[5.0.0-alpha4,The `filters` section is being renamed to `processors` i
filters:
- drop_fields:
equals:
http.code: 200
http.response.code: 200
fields: ["request", "response"]
------------

Expand All @@ -86,7 +86,7 @@ processors:
- drop_fields:
when:
equals:
http.code: 200
http.response.code: 200
fields: ["request", "response"]
------------

Expand Down