Replies: 1 comment 2 replies
-
It won't work with the current implementation of https://github.com/probot/serverless-lambda/, because you need to set the Lines 392 to 396 in f6a7970 I'm still figuring out lambda, but from my understanding, you want the logging to be as fast as possible. I would pass in a bare bone
If that is not working, you can use it as module, const { Probot } = require('probot')
const pino = require('pino')
const pinoElastic = require('pino-elasticsearch')
const streamToElastic = pinoElastic({
index: 'an-index',
consistency: 'one',
node: 'http://localhost:9200',
'es-version': 7,
'flush-bytes': 1000
})
const app = new Probot({
appId,
privateKey,
secret,
log: pino({ level: 'info' }, streamToElastic)
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Probot
community 🤖 !Our team would like to pipe
Probot
logs toElasticSearch
. Checking documentation we found out the possibility to do it and even checking further,pino
, the log system used byProbot
, has an implementation forElasticSearch
already 😍:What is not clear to me now is, with
Probot
using JavaScript, how to parametrize the constructor or, from aProbot
instance, toset
,override
orpipe
. Or even manipulatingapp.log
orcontext.log
would be fine.Once this is clarified, I would be happy to PR documentation for it if you consider it valuable ❤️
Thanks!!
P.S.: I'm using
Probot
with https://github.com/probot/serverless-lambda/so I guess a second question will come on how to parametrize the
Probot
instance inside, but... let's focus on the first part :)Beta Was this translation helpful? Give feedback.
All reactions