Multiline stack trace not working

filebeat.inputs:
- type: filestream
  enabled: true
  paths:
    - /var/tmp/javatest/simplejava.log
  json.keys_under_root: true
  json.add_error_key: false
  json.ignore_decoding_error: true
  json.overwrite_keys: true
multiline:
   pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2}'
   negate: true
   match: after
output.file:
   path: "/var/tmp/javatest"
   filename: "JavaTesting.log"

Input file for test

Exception in thread "main" java.lang.IllegalStateException
       at com.example.myproject.Author.getBookIds(Author.java:38)
       at com.example.myproject.Bootstrap.main(Bootstrap.java:14)
       at com.example.myproject.Bootstrap.getBookTitle(Bootstrap.java:24)

It runs and creates the file but does not include all the lines in stack trace together .My multiline syntax is probably not correct ?

No you're multi-line syntax is not correct.

That syntax is from the old deprecated log type input.

Thanks that worked .