title: Grok logstash message without patterns file
body: <p>I would like to know if it's possible to grok message with logstash without using an external patterns file and directly write my pattern in my config:</p>
  
  <p>For example, now it's works like this :</p>
  
  <pre><code>input { 
       stdin{     
      }   
  }
  filter {
      grok {
          patterns_dir =&gt; "./patterns"
          match =&gt; ["message","%{PATTERNFILE:test}"]
      }
  }
  
  output {
      stdout {codec =&gt; rubydebug}
  
  }
  </code></pre>
  
  <p>I have a file in a patterns folder with the following content :</p>
  
  <pre><code>PATTERNFILE .*
  </code></pre>
  
  <p>But I would like to directly write my pattern in the filter like this :</p>
  
  <pre><code>filter {
      grok {
          patterns_dir =&gt; "./patterns"
          match =&gt; ["message","%{.*:test}"]
      }
  }
  </code></pre>
  
  <p>But it's not working.</p>