Browse Source

[DOCS] Move EQL event category section (#70955)

Combines the basic syntax and event category sections for better visibility.
James Rodewig 4 years ago
parent
commit
fdbea16e15
1 changed files with 9 additions and 10 deletions
  1. 9 10
      docs/reference/eql/syntax.asciidoc

+ 9 - 10
docs/reference/eql/syntax.asciidoc

@@ -18,22 +18,21 @@ keyword connects them.
 event_category where condition
 ----
 
-For example, the following EQL query matches `process` events with a
-`process.name` field value of `svchost.exe`:
+An event category is an indexed value of the <<eql-required-fields,event
+category field>>. By default, the <<eql-search-api,EQL search API>> uses the
+`event.category` field from the {ecs-ref}[Elastic Common Schema (ECS)]. You can
+specify another event category field using the API's
+<<specify-a-timestamp-or-event-category-field,`event_category_field`>>
+parameter.
+
+For example, the following EQL query matches events with an event category of
+`process` and a `process.name` of `svchost.exe`:
 
 [source,eql]
 ----
 process where process.name == "svchost.exe"
 ----
 
-[discrete]
-[[eql-syntax-event-categories]]
-=== Event categories
-
-An event category is a valid, indexed value of the
-<<eql-required-fields,event category field>>. You can set the event category
-field using the `event_category_field` parameter of the EQL search API.
-
 [discrete]
 [[eql-syntax-match-any-event-category]]
 === Match any event category