I ran this example on Logstash 1.5.2, and it seems to work just fine.
$ cat test.data | ../bin/logstash -f ./test.config
Logstash startup completed{
"message" => "2015-01-31 15:58:56,851 [9] DEBUG NCR.AKPOS.ShoppingCart.CartInvoicer - Setting offline returninvoice: c0000000-2144-04e2-f409-ffff08d20b85",
"@version" => "1",
"@timestamp" => "2015-07-10T13:45:01.625Z",
"host" => "Christians-MacBook-Air-3.local",
"time" => "2015-01-31 15:58:56,851",
"thread" => "9",
"loglevel" => "DEBUG",
"class" => "NCR.AKPOS.ShoppingCart.CartInvoicer",
"msg" => "Setting offline returninvoice: c0000000-2144-04e2-f409-ffff08d20b85"
}
{
"message" => "2015-01-31 15:58:56,860 [9] DEBUG NCR.AKPOS.ShoppingCart.CartInvoicer - InvoiceCart: Overwrite subtotal, taxtotal and total of invoice by dispensed total",
"@version" => "1",
"@timestamp" => "2015-07-10T13:45:01.626Z",
"host" => "Christians-MacBook-Air-3.local",
"time" => "2015-01-31 15:58:56,860",
"thread" => "9",
"loglevel" => "DEBUG",
"class" => "NCR.AKPOS.ShoppingCart.CartInvoicer",
"msg" => "InvoiceCart: Overwrite subtotal, taxtotal and total of invoice by dispensed total"
}
{
"message" => "2015-01-31 15:58:57,400 [9] ERROR NCR.AKPOS.Enterprise_Comm.EventSender - EventSender.SendInvoice() Generate Message Error: System.ArgumentNullException: Value cannot be null.Parameter name: value at System.Xml.Linq.XAttribute..ctor(XName name, Object value) at NCR.AKPOS.Enterprise_Comm.MessageHandlerObjecttoXMLHelper.CreateXMLFromInvoice(Invoice invoice, Customer_ID customer_id, List`1 parentInvoices, Boolean isParentInvoice) in D:\\Satish\\Work\\Vidbox Source\\branches\\ver1.2.0.0\\XE\\Kiosk Solutions\\AKPOS\\AKPOS\\Enterprise_Comm\\MessageHandlerObjecttoXMLHelper.cs:line 53",
"@version" => "1",
"@timestamp" => "2015-07-10T13:45:01.627Z",
"host" => "Christians-MacBook-Air-3.local",
"tags" => [
[0] "multiline"
],
"time" => "2015-01-31 15:58:57,400",
"thread" => "9",
"loglevel" => "ERROR",
"class" => "NCR.AKPOS.Enterprise_Comm.EventSender",
"msg" => "EventSender.SendInvoice() Generate Message Error: System.ArgumentNullException: Value cannot be null.Parameter name: value at System.Xml.Linq.XAttribute..ctor(XName name, Object value) at NCR.AKPOS.Enterprise_Comm.MessageHandlerObjecttoXMLHelper.CreateXMLFromInvoice(Invoice invoice, Customer_ID customer_id, List`1 parentInvoices, Boolean isParentInvoice) in D:\\Satish\\Work\\Vidbox Source\\branches\\ver1.2.0.0\\XE\\Kiosk Solutions\\AKPOS\\AKPOS\\Enterprise_Comm\\MessageHandlerObjecttoXMLHelper.cs:line 53"
}
{
"message" => "2015-01-31 15:58:56,851 [9] DEBUG NCR.AKPOS.ShoppingCart.CartInvoicer - Setting offline returninvoice: c0000000-2144-04e2-f409-ffff08d20b85 ",
"@version" => "1",
"@timestamp" => "2015-07-10T13:45:01.627Z",
"host" => "Christians-MacBook-Air-3.local",
"tags" => [
[0] "multiline"
],
"time" => "2015-01-31 15:58:56,851",
"thread" => "9",
"loglevel" => "DEBUG",
"class" => "NCR.AKPOS.ShoppingCart.CartInvoicer",
"msg" => "Setting offline returninvoice: c0000000-2144-04e2-f409-ffff08d20b85 "
}