I am stucking with writting format of logs in fluentd for magento exception logs.
single exception of exception.log
[2016-04-30 11:37:42] main.CRITICAL: exception 'Exception' with message 'Report ID: webapi-571f53065307a; Message: Notice: Array to string conversion in /var/www/html/magento2/vendor/monolog/monolog/src/Monolog/Logger.php on line 277' in /var/www/html/magento2/vendor/magento/framework/Webapi/ErrorProcessor.php:194
Stack trace:
#0 /var/www/html/magento2/vendor/magento/framework/Webapi/ErrorProcessor.php(139): MagentoFrameworkWebapiErrorProcessor->_critical(Object(Exception))
#1 /var/www/html/magento2/vendor/magento/module-webapi/Controller/Rest.php(163): MagentoFrameworkWebapiErrorProcessor->maskException(Object(Exception))
#2 /var/www/html/magento2/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): MagentoWebapiControllerRest->dispatch(Object(MagentoFrameworkAppRequestHttp))
#3 /var/www/html/magento2/vendor/magento/framework/App/Http.php(115): MagentoWebapiControllerRestInterceptor->dispatch(Object(MagentoFrameworkAppRequestHttp))
#4 /var/www/html/magento2/vendor/magento/framework/App/Bootstrap.php(258): MagentoFrameworkAppHttp->launch()
#5 /var/www/html/magento2/index.php(39): MagentoFrameworkAppBootstrap->run(Object(MagentoFrameworkAppHttp))
#6 {main} [] []
note: totally 9 lines there (but total number of lines vary as per exception)
log format regex patte is
/^[(?<time>[^ ]* [^ ]*)] (?<Level>[^ ]*): (?<Exception>.*n.*):(?<StackTrace>.*n)$/
but its not working, what is the right patte too collect exception log.
note: I have check with http://fluentular.herokuapp.com/ but it did not throw any error.
Thanks
