Code Monkey home page Code Monkey logo

Comments (3)

molu8bits avatar molu8bits commented on June 7, 2024

thanks for your contribution, looks good, Will review, build and merge soon your PR

from modsecurity-parser.

molu8bits avatar molu8bits commented on June 7, 2024

Seems the normalize must be True
Otherwise for bigger files there is an exception like below:
inputFileName : modsec3/modsec_audit.log ---------- modsec_audit events processed: 577 ---------- ---------- modsec_audit events skipped by INCLUDED/EXCLUDED options or INVALID : 0 ---------- Traceback (most recent call last): File "modsecurity-parser3.py", line 689, in <module> outputWithGraphs = modsecViewGraphs(modsec_entries) File "modsecurity-parser3.py", line 454, in modsecViewGraphs patches, texts, autotexts = plt.pie(intercepted_cnt_top10.values(), autopct='%1.1f%%', shadow=True, startangle=90, radius=1.0, normalize=False) File "/usr/local/lib/python3.8/dist-packages/matplotlib/pyplot.py", line 2827, in pie return gca().pie( File "/usr/local/lib/python3.8/dist-packages/matplotlib/__init__.py", line 1438, in inner return func(ax, *map(sanitize_sequence, args), **kwargs) File "/usr/local/lib/python3.8/dist-packages/matplotlib/axes/_axes.py", line 3018, in pie raise ValueError('Cannot plot an unnormalized pie with sum(x) > 1') ValueError: Cannot plot an unnormalized pie with sum(x) > 1

and charts are not created. When normalize=True everything works without warning and charts are generated.
I checked that for modsec_audit.log traditional and json version. Also modsecurity3 logs behave in the same way.

I have added that with the newest PR which is already merged.

from modsecurity-parser.

altmas5 avatar altmas5 commented on June 7, 2024

Ok, good to know, I'm manually closing the issue.

from modsecurity-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.