Hi- thanks for your appender
Closed this issue · 5 comments
ShirelAzulay commented
hi
Can you please add an example of your appender for logbzck.groovy ?
i tried to translate it from logback.xml but it doesn't work for me.
abatkin commented
I'll be honest - I've never actually use a groovy configuration. But if you find one that works, I'd be happy to add it to the documentation. Maybe post what you have here (and what problems you are having) and someone may come along and offer assistance.
marksmithson commented
appender("ELASTIC", ElasticsearchAppender){
url = 'http://elastic:changeme@localhost:9200/_bulk'
index = 'logs-%date{yyyy-MM-dd}'
type = 'log'
rawJsonMessage = true
errorsToStderr = true
authentication = new BasicAuthentication()
def configHeaders = new HttpRequestHeaders()
configHeaders.addHeader(new HttpRequestHeader(name: 'Content-Type', value: 'text/plain'))
headers = configHeaders
}
abatkin commented
@marksmithson Mind if I add this to the README.md? Or if you would like the credit, feel free to submit a PR.
marksmithson commented
Done - apologies for the delay - work got in the way!
ShirelAzulay commented
already managed with groovy, already done and i change company :-)
2017-06-27 12:58 GMT+03:00 Mark Smithson <notifications@github.com>:
… Done - apologies for the delay - work got in the way!
#33
<#33>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#21 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AS6nmh29s5teQpATOq1d1bXG-6p7jm39ks5sINJUgaJpZM4Kw05V>
.
--
שיראל אזולאי