Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apache_scraper.py - add caller IP and user to report #37

Closed
asteigerLOD opened this issue May 16, 2022 · 2 comments
Closed

apache_scraper.py - add caller IP and user to report #37

asteigerLOD opened this issue May 16, 2022 · 2 comments

Comments

@asteigerLOD
Copy link

The apache log scraper is great for customers that slowly want to transition from ZAPI to REST over a longer time period. They can use the date filter and run the report every once in a while, to make sure that there are no ZAPI calls left, and identify calls that fell through the cracks.

In the case of a larger customer with a bigger storage footprint and a lot of distributed automation, there could be a possibility of older scripts still being executed on an admin machine (e.g. self-made executables to provision volumes & shares).

To better identify those ZAPI calls, it would be great to add the caller IP and user to the report.
The data is already available in the apache logs.

I have created a version of the script that includes that. (may not be 100% perfect due to insufficient python/regex skills).
apache_scraper_incl_user_sourceip.txt

@asteigerLOD asteigerLOD changed the title apache-scraper.py - add caller IP and user to report apache_scraper.py - add caller IP and user to report May 16, 2022
@github-actions
Copy link

Thank you for reporting an issue! If you haven't already joined our Slack community,
then we invite you to do so. This is a great place to get help and ask questions from our community.

@noorbuchi
Copy link
Contributor

Cleaning up stale issues. If you're interested in merging this into main please open a PR. Thanks!

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

No branches or pull requests

2 participants