Elasticsearch multiline search

Hi,

Is it possible to do following queries on Elasticsearch?

  1. Given Line1 and Line2, find all the line pairs such that Line1 and Line2 are N seconds apart.
  2. Return all the log lines where Line1 occurred before Line2

Bump