
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Python client for sending UDP messages in Graylog Extended Log Format (GELF).
Messages are zlib compressed, and support GELF chunked encoding.
Since messages are sent with UDP, the log method should return quickly and not raise an exception due to timeout. However an exception may be raised due to a DNS name resolution failure for the target hostname.
pip install gelfclient
::
from gelfclient import UdpClient
gelf_server = 'localhost'
# Using mandatory arguments
gelf = UdpClient(gelf_server)
# Using all arguments
gelf = UdpClient(gelf_server, port=12202, mtu=8000, source='macbook.local')
# Bare minimum is to send a string, which will map to gelf['short_message']
gelf.log('server is DOWN')
# 'source' and 'host' are the same. Defaults to socket.gethostname() but can be overridden
gelf.log('server is DOWN', source='hostchecker')
# Set extra fields
gelf.log('status change', _state='DOWN', _server='macbook')
# Set severity level
import syslog
gelf.log('unexpected error', level=syslog.LOG_CRIT)
# You can also prepare all data into a dictionary and give that to .log
data = {}
data['short_message'] = 'warning from python'
data['host'] = 'hostchecker'
data['level'] = syslog.LOG_WARNING
gelf.log(data)
See the GELF specification for other fields and their meaning: http://docs.graylog.org/en/latest/pages/gelf.html#gelf-format-specification
FAQs
A UDP client for sending message in the Graylog Extended Log Format (GELF)
We found that gelfclient demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.