EQL
Cheatsheet
1. Basic Query Format
Start with an event type followed by a
where
clause for conditions.
2. Filtering
Use
where
to filter results based on a condition.
3. Event Joining
Use
sequence
to correlate events in a sequence.
4. Time Constraints
Use
until
andwithin
to define time constraints between sequence events.
5. Event Type Definition
Define event types to filter on specific log types.
6. Field Comparisons
Use field comparisons to correlate fields within and across events.
7. String Functions
Use string functions like
concat
,substring
, etc., for string operations.
8. Mathematical Operations
Use mathematical operations like
+
,-
,*
,/
for calculations.
9. Logical Operators
Use logical operators like
and
,or
,not
for complex conditions.
10. Pipe Operations
Examples for Detection Query in EQL
1. Basic Query
2. Event Sequence
3. Time Constraint
4. Field Comparison
5. String Concatenation
6. Logical Operator
7. Mathematical Operation
8. Event Type Definition
9. Pipe and Count
10. Pipe and Unique Count
11. Pipe and Sort
12. Pipe and Filter
13. Pipe and Head
14. Pipe and Tail
15. Subquery
16. Wildcard Usage
17. Case Insensitive Match
18. Length Function
19. Number Function
20. Array Function
Last updated