Correlating Events Flashcards
What does the |transaction command do?
The |transaction command allows you to group events together based on one or more fields
What fields does the |transaction command add to events?
- duration
- eventcount
What is the syntax for the |transaction command?
|transaction (<field>|<fields>) [options]</fields></field>
What options are available for the |transaction command?
- maxspan
- maxpause
- maxevents
- startswith
- endswith
If a transaction has more than five events, what is present?
A show all # lines option showing the rest of the events.
True or False: Fields within each transaction can have multiple values
True
Transactions are pulling multiple events, aka multivalued fields.
What does the maxspan option do?
Controls the maximum total time between the earliest and latest events. Defaults to -1 (no max time limit)
What does the maxpause option do?
Controls the maximum total time between events. Defaults to -1 (no max time pause limit)
True or False: you can pipe to transforming commands after the transaction command
True.
You can use stats and transforming commands with transactions to create reports and visualizations.
True or False: The transaction command can contain the eval function.
True.
Transactions are assigned either a 0 or 1 in the closed_txn field. What do these indicate?
1 - Conditions are met and the transaction is complete.
0 - Conditions are not met and the transaction is incomplete.
What does the keepevicted option of the |transaction command do?
keepevicted takes a value of true or false, and is set to 0 by default, evicting all complete transactions. Setting keepevicted to a value of 1, will show incomplete transactions.
Since the transaction command is resource intensive, you should ______.
use the stats command whenever possible.
When is the transaction command a better choice over the stats command?
When events need to be seen correlated together and displayed in the raw event view.
When you need to define event grouping on start/end values or segment on time.
How is stats different from transactions?
- Faster and more efficient
- Can perform calculations
- Can group events based on a single field value (e.g. “by src_ip”)