title: How to identify/display set of sequence data In the log file
body: <p>I got one different use case from my client which I need to identify a set of log data which got recorded in sequence at any line in the log file and they want to view the identified sequence in Kibana and its related count. I am wondering whether it is possible to achieve it in Logstash filter or in Kibana query.</p>
  
  <p>Below is my log file.</p>
  
  <p><a href="https://i.stack.imgur.com/XMK6c.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XMK6c.png" alt="enter image description here"></a>
  for example I have to get the count of the below sequence appeared anywhere in the log file.</p>
  
  <pre><code>1. LS=Select    
  LS=Symmetry      
  LS=Select     
  LS=Select     
  LS=Mirror     
  LS=Select      
  
  2. LS=Select     
  LS=Modify     
  LS=* (which can be anything)    
  LS=Select      
  LS &lt;&gt; Select (This needs to be a command)  
  </code></pre>
  
  <p>Please advice whether its possible to achieve.</p>