Coder Social home page Coder Social logo

enterprise-unified-logging's Introduction

Enterprise Unified Logging

This repository contains example configurations for running an Elasticsearch stack to monitor and log ShotGrid Enterprise. The visualizations and dashboards provided are examples of what could be useful for monitoring ShotGrid Enterprise, clients may choose to modify the configuration as needed.

The solution uses Fluentd as the data collector between the ShotGrid application and the Elasticsearch database.

Getting started

First, you will need to build the Fluentd image and the Kibana image using the following command.

docker-compose build

Then start Fluentd and Elasticsearch along with Kibana.

docker-compose up

Finally, you will need to change the ShotGrid application logging driver in its docker-compose.yml file from json-file to fluentd:

Remove

# json-file
logging:
  driver: "json-file"
  options:
    max-size: "2g"
    max-file: "20"

And add

# fluentd
logging:
  driver: "fluentd"
  options:
    fluentd-address: "<fluentd_server_address>:24224"
    tag: "sg.app.{{.ID}}"
    mode: "non-blocking"

How to access logs

Kibana

Logs can be access via Kibana at http://localhost:5601/

From there you can create your indexes (ex: shotgrid_logs-* already created by default) and then query Elasticsearch.

Saved Objects

Customizations (visualizations, dashboards, etc) can be saved. Please refer to Kibana documentation on how to manage saved objects. However, once changes are made in Kibana they persist as long as the database is not removed.

Saved objects can be provisioned by default in a new stack by modifying the appropriate ndjson files in the kibana/saved_objects/ directory.

Log files

Logs are also available (not by default) in json file in the logs/ directory.

Fluentd

Configuration

All the configuration takes place in the fluentd/files_docker/fluent.conf file.

Further details on configuring fluentd are availabe in the config-file documentation.

Plugins

For Elasticsearch, we use the fluent-plugin-elasticsearch plugin.

To install additional plugin see the Dockerfile at fluentd/Dockerfile.

enterprise-unified-logging's People

Contributors

carlos-villavicencio-adsk avatar khosrow avatar rlyne avatar rob-aitchison avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.