graypy GELFHandler This function sends a log message to a Graylog server using the GELF protocol, while filtering by a specified field and value. Log 2024-12-16 12:06:18 19 views
graypy JSONFormatter This function creates a custom Graylog event and sends it to the specified Graylog server using the UDP protocol. It uses a JSON formatter and generates random event data. Graylog GELF UDP Handler 2024-12-16 12:05:22 7 views
Packages and The Graylog library is used here, specifically the JsonFormatter class to format the event data into JSON format. The event's timestamp is set to the current time using graypy.utils.time.time(), and the message, severity, source, and source type are set accordingly. Random values are generated for the source and source type from a predefined list of sources. The type of code 2024-12-16 11:58:44 3 views
graypy GELFMessage This function uses the Graylog third-party library to query log entries from specified indices. Function 2024-12-16 11:53:19 4 views
Graypy GELFHandler This code randomly selects and configures a Graylog logger handler, formatter, and transport. The code first randomly selects one from the possible handler types, then selects a formatter and transport for the handler. Finally, the code configures the handler to use the selected formatter and transport. The type of code 2024-12-16 11:48:44 12 views
Python Graylog This function randomly selects a library and a function from the Graylog third-party libraries to demonstrate their usage. Possible libraries include graypy, graylog-python-client, and graypy-formatter, and functions include logfmt, json, fields, GelfClient, GelfUdpClient, GelfTcpClient, LogfmtFormatter, JsonFormatter. Python Function 2024-12-16 11:44:03 3 views
graypy GelfUdpTransport This function uses the Graylog Python client library to send a search query to the Graylog server and return the search results. Graylog API call 2024-12-16 11:39:03 14 views
graypy GELFHandler This function uses the third-party library graypy to send log records to a Graylog server. The function accepts a query string and a list of target hosts as parameters. Function 2024-12-16 11:36:04 3 views
graypy KafkaTransport This function is used to send a message to the Graylog logging system, where tags for the message can be specified. Function 2024-12-16 11:34:46 12 views
graypy JsonFormatter This function uses the Graylog Python library to send a message with a summary to the Graylog server from a specified index. Function 2024-12-07 16:18:24 3 views