I'm trying to structurally filter my log using a grok filter in logstash
.
This is a sample log:
5d563f04-b5d8-4b8d-b3ac-df26028c3719 SoapRequest CheckUserPassword <?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><CheckUserPassword xmlns=\"http://users.tvinci.com/\"><sWSUserName>users_199</sWSUserName><sWSPassword>11111</sWSPassword><sUserName>test</sUserName><sPassword>123456</sPassword><bPreventDoubleLogins>false</bPreventDoubleLogins></CheckUserPassword></soap:Body></soap:Envelope>
And this is my filter grok match pattern:
%{DATA:method_id} %{WORD:method_type} %{WORD:method} %{GREEDYDATA:data}
The structure I am receiving is:
"method_id" => "963ad634-92d6-4a6c-9e6b-ef57e6bcd374",
"method_type" => "SoapRequest",
"method" => "CheckUserPassword",
"data" => " <?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><CheckUserPassword"
WHich is the correct structure except the data field, here I expect to see the whole SOAP XML (as you can see it's cut in the middle)
Any suggestions?