camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karts <kartiksan...@gmail.com>
Subject Re: Camel Tracer and Logstash
Date Wed, 12 Oct 2016 13:59:05 GMT
In case anyone needs it, we used grok to achieve this:

if [path] =~ "Tracer" {
        grok {
                patterns_dir => ["./extra_patterns"]
                match => {
                        "message" => "^\n%{USERNAME:id} >>>
\(%{USERNAME:routeId}\) %{GREEDYDATA:source} --> %{GREEDYDATA:destination}
<<<\n, Pattern:%{WORD:pattern}\n,
Headers:{%{MULTILINEGREEDYDATA:headers}}\n, BodyType:%{JAVAFILE:bodyType}\n,
Body:%{GREEDYDATA:body}"
                }
        }
        kv {
                source => "headers"
                field_split => ","
        }
  }




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-Tracer-and-Logstash-tp5788502p5788689.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message