Skip to content

Python module to send GELF formatted messages to graylog2-server

Notifications You must be signed in to change notification settings

madmouser1/gelf-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Python module to send GELF (Graylog extended log format) messages

See http://www.graylog2.org/gelf for more information.

##################################
# Example of gelf-python usage
##################################
from gelf import Client
import json

message['version'] = '1.0'
message['short_message'] = 'Something happened'
message['full_message'] = 'Stack trace\n\nMore data'
message['host'] = 'www1'
message['facility'] = 'graylog2-server'

c = gelf.Client()
c.log(json.dumps(message))

About

Python module to send GELF formatted messages to graylog2-server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages