When searching, you can specify the time ranges in the query itself. There are several fields that allow us to specify the time. They are as follows:
- earliest: This is the earliest time, inclusive. It can be specified as either a relative time or an epoch time in seconds.
- latest: This is the latest time, exclusive. Only events with a date before this time will be returned. This value can be specified as either a relative time or an epoch time in seconds.
- now: Using this field, you can redefine the relative values in Earliest and Latest that are calculated against. It must be defined as epoch time in seconds.
Now, given our inputs, let's define our variable names:
- field_name = ip
- field_value = 1.22.3.3
- event_time ...