Giter Site home page Giter Site logo

Please support JSON as report format about aide HOT 12 CLOSED

aide avatar aide commented on July 3, 2024 9
Please support JSON as report format

from aide.

Comments (12)

elico avatar elico commented on July 3, 2024

@hvhaugwitz Are there any missing parameters in the current format?

from aide.

hvhaugwitz avatar hvhaugwitz commented on July 3, 2024

What do you mean by missing parameters in the current format?

from aide.

elico avatar elico commented on July 3, 2024

@hvhaugwitz as a transition phase a simple report conversion to json can help.
As far as I can tell from what I see in my reports is that every section of the report has it's own format ie:

command
Start time
AIDE found differences between database and filesystem!!
<\n>
<title:>Summary:
<\s\s> section
<\n>
<--....>
<title:>Added entries:
<--....>
<\n>
<list of new files and directories>
<\n>
<--....>
<title:>Changed entries:
<--....>
<\n>
<list of changed enteries>
<\n>
<--....>
<title:>Detailed information about changes:
<--....>
<\n>
<list of file changes with a leading space to each section/file and separated by a \n>
<\n>
<--....>
<title:>The attributes of the (uncompressed) database(s):
<--....>
<\n>
<DB Attributes>
<\n>
<\n>
<End timestamp>
<\n>

I believe it's pretty easy to script the basic transformation to json.

from aide.

hvhaugwitz avatar hvhaugwitz commented on July 3, 2024

Sure, it should be possible to write a wrapper script to transform the current (human) report format to JSON format. The native support for JSON report format is planned for the upcoming release.

from aide.

elico avatar elico commented on July 3, 2024

@hvhaugwitz Is there any specific date for this release?

from aide.

elico avatar elico commented on July 3, 2024

@hvhaugwitz I wrote this tiny tool that converts a specific example log file into an experimental json format.
https://github.com/elico/aide-tools

Of-course it's basic parser so it would be possible to do better job later.
It will probably be useful for older systems which doesn't have the option to re-compile and install aide.
With enough work on this script it would be possible to also export to external DBs if not supported or to report an external URL on a change in the system.

I wanted to know if the format I am using is similar to what you have planned for aide.
Also any specific improvements to my script are more then welcome.
The license is not there yet but it's MIT 3 Clause BSD.

from aide.

hvhaugwitz avatar hvhaugwitz commented on July 3, 2024

@hvhaugwitz Is there any specific date for this release?

No, not yet.

I wanted to know if the format I am using is similar to what you have planned for aide.

Can you provide an example json output along with your example log file?

The license is not there yet but it's MIT 3 Clause BSD.

Please add a license so others can use your script without knowing this issue.

from aide.

elico avatar elico commented on July 3, 2024

@hvhaugwitz
https://github.com/elico/aide-tools/blob/master/example-report-1.json

from aide.

elico avatar elico commented on July 3, 2024

@hvhaugwitz I'm looking for other logs to verify what I might be able to improve in the parser.

from aide.

arafatx avatar arafatx commented on July 3, 2024

Using wrapper for json output would be slow. Love to see this feature would be added as a native option.

from aide.

konstantin-921 avatar konstantin-921 commented on July 3, 2024

We plan to send AIDE reports to the ELK and process them like normal logs. It would be ideal for us if the reports supported JSON format because it would make it much easier to process reports at Logstash level.

from aide.

hvhaugwitz avatar hvhaugwitz commented on July 3, 2024

Native json support for reports is now available in master branch.

Please give it a try and report back any issues.

from aide.

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.