The v2
release of LogDNA S3 Lambda function integration contains lots of refactoral changes to improve the performance and configuration by introducing @logdna/logger
, @logdna/env-config
, and eslint-config-logdna
. There are several changes in naming and handling environment variables as well. All environment variables are documented here
LOGDNA_KEY
was replaced withINGESTION_KEY
.LOGDNA_HOSTNAME
was replaced withHOSTNAME
.LOGDNA_TAGS
was replaced withTAGS
.LOGDNA_URL
was split into multiple new variables:INGESTION_ENDPOINT
,INGESTION_HOST
,INGESTION_PORT
, andSSL
.LOGDNA_BATCH_INTERVAL
was replaced withFLUSH_INTERVAL
.LOGDNA_BATCH_LIMIT
was replaced withFLUSH_LIMIT
.
LOGDNA_FREE_SOCKET_TIMEOUT
,LOGDNA_MAX_REQUEST_RETRIES
,LOGDNA_REQUEST_RETRY_INTERVAL
, andLOGDNA_MAX_REQUEST_TIMEOUT
were removed because the connection is handled within the logger client.LOGDNA_MAX_LINE_LENGTH
was removed because line length is handled on the server-side.LOGDNA_EVENTLOG
andLOGDNA_FILELOG
were removed becausev2
streams only the logs from the files within the specified bucket. You can useAWS CloudTrail Event Logging
to stream Object-level operations fromS3
buckets. For more information, refer to this article.
PROXY
,HTTPS_PROXY
, andHTTP_PROXY
provide proxy support.USER_AGENT
supports customuser-agent
overrides.