Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Nex!™ supports setting up a log drain for sending application logs to another platform (SumoLogic, Splunk, Elasticsearch). All that's required is to specify the URL where logs should be sent to.

...


Image Added


...


Table of Contents
stylenone


...


1 - Ensure logs are redirected to STDOUT in your Express 

See Deploying Express "Logging" section.

2

...

- Adding a HTTP log drain to your application on Nex!

Just run the command below for your application. If you don't have a log drain URL you should create one first. See the next sections for instructions on how to do that with SumoLogic.

Code Block
# Add a logdrain for the 'holistic-salmon' app
nex-cli apps:update holistic-salmon --http-log-drain https://some-log-platform.com/some-random-log-drain-token


# Restart your application for the change to take effect
nex-cli apps:restart holistic-salmon

3 - Creating a HTTP Log Drain in SumoLogic

You first need to register a Hosted SumoLogic Collector and use the generated collector URL

...