message: fix issues where json is suffixed with a newline `\n`
diff: @@ -13,7 +13,7 @@ input {
  }
  filter {
  - if [message] =~ /^{.*}$/ {
  + if [message] =~ /^{.*}/ {
  # message is JSON, this is an application log
  mutate {
  add_field => { "[@metadata][log-type]" => "application-logs" }
  @@ -73,7 +73,7 @@ filter {
  }
  output {
  - stdout { codec => rubydebug }
  + # stdout { codec => rubydebug }
  if [@metadata][log-type] == "router-logs" {
  elasticsearch {
  user => admin
  @@ -85,6 +85,7 @@ output {
  template_overwrite => true
  }
  } else {
  + # stdout { codec => rubydebug }
  elasticsearch {
  user => admin
  password => "${LOGSDB_ADMIN_PASSWORD}"
  