title: How to match all lines with common pattern in splunk regex
body: <p>I am trying to extract a report of all incidents matching a certain pattern and then need to plot how many occurances of each type. For example the below lines.</p>
  
  <pre><code>File: ../../../transfer/200.FILETYPE1.0000003115.20160419-082708-089.xml successfully imported.
  some other logs....
  File: ../../../transfer/200.FILETYPE1.0000003116.20160419-082708-090.xml successfully imported.
  some other logs...
  File: ../../../transfer/201.FILETYPE2.0000003117.20160419-082708-091.xml successfully imported.
  </code></pre>
  
  <p><strong>Please note that there are many filetypes but the pattern is same "/transfer/" prefix and "successfully imported." suffix and these prefix and suffix must match as other lines may also contain same file name before completion.</strong></p>
  
  <p>So in above case I need to find all such occurrences of above lines and find count of each FILETYPE1 and FILETYPE2 in splunk.</p>
  
  <p>Can someone help me with regex that can match above pattern and give me all such lines so that I can extract counts of each file type?</p>