Skip to content

Comments

Allow reading logs from local disk; add more metrics#5

Open
apurvis wants to merge 20 commits intomtrdesign:masterfrom
apurvis:master
Open

Allow reading logs from local disk; add more metrics#5
apurvis wants to merge 20 commits intomtrdesign:masterfrom
apurvis:master

Conversation

@apurvis
Copy link

@apurvis apurvis commented May 12, 2022

As mentioned in #4 i'm unsure of how to run the specs to make sure this is a working PR that doesn't break stuff... but it does add features. If this project is still alive I can do whatever work is needed to bring this up to snuff. If it's not still alive, maybe someone will find these features useful.

Changes:

  1. allow reading logs from local disk as well as directly from S3 (via config option)
  2. new metrics:
    1. totaltime of requests per object
    2. list of unique dates on which an object received GET requests
    3. counts of operations other than GET
  3. other new config options:
    1. add a debug mode option to configs
    2. add exclude_lines_with_substring config option

There's also one maybe not so good change, which is that all the logs (not just GETs) are collated to memory in one giant list before statistics are computed. For my use case that was totally fine but for a situation with a ton of logs in S3 this is probably (definitely?) not a good thing as the script will probably run out of memory...

apurvis added 20 commits May 7, 2022 19:55
* Read from local logs

* README

* clean up

* clean up

* README

* parsing

* even more working

* working

* workgin

* Parse dates

* better

* operations info

* simpler unique dates

* simpler unique dates

* simpler unique dates

* refactor

* warnings

* stable

* stable

* var rename

* variable names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant