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

Update key in dictionary #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Fisstouk
Copy link

Update the new "totalFilesScanned" key

@Fisstouk
Copy link
Author

Here is a detail explanation of the issue:

  1. I used the command mdatp diagnostic real-time-protection-statistics --output json > real_time_protection.json to check the statistics about Microsoft Defender
  2. I downloaded the python parser with the command curl -O https://raw.githubusercontent.com/microsoft/mdatp-xplat/master/linux/diagnostic/high_cpu_parser.py
  3. When I used the command cat real_time_protection.json | python3 high_cpu_parser.py > real_time_protection.log to display processes using a high CPU load, I had a KeyError.

The JSON keys have changed and the snake case writing style was replaced by the camel case writing style, for example total_files_scanned is now totalFilesScanned in the file real_time_protection.json

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