Skip to content

jiken920/datadog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Log Analyzer Utility

Utility for analyzing logs. To build it, clone this repo and build the executable JAR by running:

mvn clean package

To run, navigate to the directory where the JAR was built (usually /target) and run the following command. You must provide a file using the --file or -f option:

java -jar datadog-kenji-rudio-1.0-SNAPSHOT-jar-with-dependencies.jar --file d:\sample_csv.txt

By default, this utility runs with a default rate limit of 10 requests per second, a stats collection window of 10 seconds, and a rate-limit window of 120 seconds. You can override these values using the --statsWindowSize (or -s) and --rateLimitWindowSize (or -w) options resepctively:

java -jar datadog-kenji-rudio-1.0-SNAPSHOT-jar-with-dependencies.jar --file d:\sample_csv.txt --rateLimit 15 --statsWindowSize 60 --rateLimitWindowSize 90

Potential future improvements:

  1. Persist log statistics to a database for reporting.
  2. Add logic to tail a log file indefinitely until the client exists.
  3. Ship log and application statistics to a metrics provider (such as Graphite) for real-time dashboards and alerting.
  4. Parameterized support for other file types besides CSV.
  5. Support other types of fields (columns) in logs.
  6. Help menu for users unfamiliar with the utility.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages