title: Can filebeat dissect a log line with spaces?
body: <p>So I have a log line formatted as such:</p>
  
  <p><code>2020-04-15 12:16:44,936 WARN c.e.d.c.p.p.BasePooledObjectFactory [main] Caution - XML schema validation has been disabled! Validation is only available when using XML.</code></p>
  
  <p>I am using filebeat to send this directly to elasticsearch, which it does but the log.level is not set, the whole line becomes the message.</p>
  
  <p>reading up on dissection I had intended to use:</p>
  
  <pre><code>processors:
    - add_host_metadata: ~
    - dissect:
       tokenizer: "%{} %{} %{log.level} %{} [%{}] %{message}"
       field: "message"
       target_prefix: ""
  </code></pre>
  
  <p>which I expected to split into:</p>
  
  <pre><code>{ 
    log.level: WARN
    message: Caution - XML schema validation has been disabled! Validation is only available when using XML.
  }
  </code></pre>
  
  <p>instead I get the same output as without the dissect:</p>
  
  <pre><code>{
    message: 2020-04-15 12:16:44,936 WARN c.e.d.c.p.p.BasePooledObjectFactory [main] Caution - XML schema validation has been disabled! Validation is only available when using XML.
  }
  </code></pre>
  
  <p>I'm just getting to grips with filebeat and I've tried looking through the documentation which made it look simple enough. however my dissect is currently not doing anything. host metadata is being added so I believe that the processors are being called.</p>
  
  <p>How can I get the log level out of the log line? (preferably without changing the format of the log itself)</p>