Searching like using grep -A5

Hi Elasticians,
a developer looking for feature like this:

grep -A5 "ERROR" /var/log/error.log

Developer can find necessary error lines from some log and after that he need to find logs which was generated before these error logs.

Does Elasticsearch/Kibana provide some feature like: give me result based on Lucene/KQL a furthermore give me e.g. 5 events generated before that events.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.