elasticsearch


How to implement multiple transports in winston-elasticsearch


As the title says, I want to implement multiple transports in Winston-Elasticsearch.
Add another transports
but it return an error:
UncaughtException: Transport already attached: elasticsearch.
Test the code below to see the result.
var logger = new winston.Logger({
transports: [
new Elasticsearch({
level: 'info',
host: 'http://localhost:9200',
indexName: 'logs',
typeName: 'log',
requestTimeout: 30000
})
]
});

Related Links

Tokenising / filtering text with markup
elasticsearch: boost query based on values of a variable
Elasticsearch function_score query
Elasticsearch 2.0.0 cluster zen discovery in docker
How can I use Kafka to retain logs in logstash for longer period?
Optimal way to set up ELK stack on three servers
Cluster Level Logging with Elasticsearch and Kibana does not work in kubernetes
ElasticSearch Couchbase Replication Issue
How to query for inner_hits against grandparents in multi-generational setup
Request timedout during delete/create on elasticsearch while snapshot is being taken
how to use two parallel Aggregation for elasticsearch nest
How do I enable remote access/request in Elasticsearch 2.0?
elasticsearch faking index per user - how are routing values inferred when updating?
elasticsearch: Proper config in 3 node cluster for each node to have full copy of index?
Multiple Nested Aggregations in Elasticsearch
Reconnection in Elasticsearch Cluster

Categories

HOME
entity-framework
focus
paypal-ipn
haproxy
mongoid
bing-search
gallery
jint
repair
mithril.js
sympy
cisco
heuristics
spring-amqp
asciimath
fosuserbundle
cpu-usage
unity-container
activeadmin
vuforia
dragula
pubxml
hdmi
jsonresult
envoy
windowsiot
steam-web-api
android-collapsingtoolbar
buildforge
textmate2
aurelia-http-client
python-sounddevice
best-buy-api
newtons-method
hdiv
cloudera-sentry
jqgrid-asp.net
apache-toree
daz3d
realstudio
android-5.0-lollipop
knockout-2.0
lightning-workbench
redisson
mobile-angular-ui
polymaps
.when
d3v4
controllers
java-2d
jpda
visual-studio-monaco
between
mathnet
gulp-uglify
trust
django-validation
m4
textpattern
html.actionlink
unidata
lifetime
mobile-country-code
csslint
profiles
saga
sql-view
itunes-sdk
lynx
multiple-dispatch
onconfigurationchanged
nsmutablestring
workflow-manager-1.x
telerik-ajax
pcspim
autosize
exponent
mmc3
differentiation
filelock
uipasteboard
page-curl
photo-management
formal-semantics
aspbutton
bucket
fuzzy-comparison

Resources

Encrypt Message