@kontajner/elasticsearch-analytics
v0.0.9
Published
This module implements AnalyticsLogger interface specifically for logging events in elasticsearch instance.
Downloads
54
Readme
elasticsearch-analytics
This module implements AnalyticsLogger interface specifically for logging events in elasticsearch instance.
Usage in kontajner.config.js
// kontajner.config.js
const ElasticSearchAnalytics = require('elasticsearch-analytics');
const ANALYTICS_KEY = 'kontajner-example';
module.exports = {
...
analytics: [ElasticSearchAnalytics {
endpoint: process.env.ELASTICSEARCH_ENDPOINT,
username: process.env.ELASTICSEARCH_USERNAME,
password: process.env.ELASTICSEARCH_PASSWORD,
projectKey: ANALYTICS_KEY,
}],
}