Skip to content

Instantly share code, notes, and snippets.

View matthewsullivan-wf's full-sized avatar

Matthew Sullivan matthewsullivan-wf

View GitHub Profile
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
@matthewsullivan-wf
matthewsullivan-wf / python_logs_in_json.py
Last active March 20, 2017 12:57
Format Python logs to output as JSON for easy ingestion into Splunk
# Getting started:
# pip install python-json-logger
# settings.py
import os
LOG_LEVEL = os.getenv('LOG_LEVEL', 'INFO')
LOGGING = {