graypy This function randomly selects and returns a GELF (Graylog Extended Log Format) handler from the Graylog third-party library. GELF is a binary log format optimized for log transmission and storage. The function uses `random.choice` to randomly select between GELFHandler and GelfUdpHandler, then creates an instance of the corresponding handler based on the choice. The type of code 2024-12-16 12:17:37 22 views
graypy This function creates a GELF (Gelf) handler for sending logs to a Graylog server. GELF is a lightweight logging format commonly used for remote log management. The type of code 2024-12-16 12:15:15 18 views
graypy GELFHandler This function uses the Graylog third-party library to send a query to the Graylog server and returns a placeholder indicating that the query has been sent. Function 2024-12-16 12:11:50 20 views
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 logging This code defines a function named graylog_query that uses the GELF protocol of Graylog to send a query string to a specified Graylog server. The type of code 2024-12-16 12:04:47 5 views
graypy logging This function uses the GelfHandler from the Graylog library to send messages to a Graylog server. The function takes a message ID and a dictionary of fields, which are sent as a log message to Graylog. Custom function 2024-12-16 12:03:42 3 views
graypy flask This function creates a Flask application using the Graylog GELFHandler to send log messages. Python Function 2024-12-16 12:03:26 4 views
The code The code uses the graypy package for interacting with Graylog, which is a Python library for interacting with Graylog's GELF protocol. It creates a Graylog formatter, handler, and queue to send messages. The function generates random messages with different templates and sends them to Graylog. The type of code 2024-12-16 12:02:26 6 views
graylog2_gelf This function searches for log entries in a Graylog server based on a given query, time range, and returns the results. Function 2024-12-16 12:02:20 3 views
graypy This function creates a Graylog handler connected to a Graylog server and defines a function called log_random_message, which generates a GELF message with a random user agent and logs it to Graylog. Function 2024-12-16 11:59:24 3 views