Integration using syslog

FlexLogs Docs Image

Getting running with FlexLogs is easy with syslog. Point your application logs at our syslog endpoint ( syslog.flexlogs.com / port 6514 ) to get started.
In order for FlexLogs to know the logs being sent correspond to your project, you need to include the project API in each log line.

Example Configuration - Elixir using syslog

    
      
    
      # in runtime.exs or config.exs

      # config...

      config :logger,
        level: :info,
        backends: [:console, Logger.Backends.Syslog],
        syslog: [host: ~c"syslog.flexlogs.com", port: 6514, appid: "flxp...(your API key)"]

      #  more config...
    

Example Configuration - Javascript using Winston

    
      

    
winston_http_options =
  {
    ssl: true,
    batch: true,
    port: 443,
    host: "intake.flexlogs.com",
    path: "/http/v1/flxp...(your API key)"
  }

logger = winston.createLogger({
  level: 'info',
  format: winston.format.json(),
  transports: [
    new winston.transports.Console(),
    new winston.transports.Http(winston_http_options)
  ],
});
      

Other Integration Articles