Skip to content

mp3monster/LogGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogGenerator

aka LogSimulator and EventSimulator

A utility for creating log files or sending Log events to a defined URL. The tool's original intent was to help test Fluentd configurations. Through the use of this tool, we can simulate different kinds of log files. However, the ability to read a source of events, format and send the events to an event-based solution (which may or not be log events) or event store, such as a log file, has resulted in the tool being extended to make it usable with other channels.

The tool uses a separate source file for its log entries. This file is identified in the properties file, which controls all aspects of the utility. Full documentation at /docs/readme.md. Which includes all the details for targeting the different outputs. The list includes:

  • single and multiline log files in different formats
  • TCP socket
  • HTTP
  • Java Logging Utility (JUL)
  • stdout, errout
  • Custom, which allows bringing your own destination, and provided custom plugins for:
    • OCI Logging
    • OCI Notifications
    • OCI Queue

The code is licensed under Apache 2.

Batch & Shell Scripts

A number of batch and shell scripts are provided in this directory. They are for the purpose of illustrating the different approaches to using the tool.

Configuration File Properties

Details on how the configuration works can be found at ./docs/readme.md

Book exercises

If you're looking for the exercise content and results used in the book Logging In Action with Fluentd - these are in the download pack available with the book.

Additional Packaging and Deployment Options for LogGenerator

The log generator can be deployed either as a JAR file or in a Docker container. The information for these configs can be read at:

  • ./jar/readme.md - how to generate the Groovy app as a JAR, including a previously generated JAR ready to be taken and used
  • ./docker/readme.md - the details of the Docker image creation and deployment.
  • ./Kubernetes/readme.md - details of the Kubernetes configuration to deploy the simulator