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

vuls report -to-localfile not writing #1468

Closed
CA-dfox opened this issue May 26, 2022 · 2 comments
Closed

vuls report -to-localfile not writing #1468

CA-dfox opened this issue May 26, 2022 · 2 comments
Labels

Comments

@CA-dfox
Copy link

CA-dfox commented May 26, 2022

Hello,

I am trying to get vuls to write the results to a file in JSON. The command I am using is:
vuls report -config=/usr/share/vuls-data/config237 -format-json -to-localfile.
There is no file written anywhere that I can locate. Where is the output written to? The documentation is not very clear on this option.

@MaineK00n
Copy link
Collaborator

MaineK00n commented May 27, 2022

Is it placed under <results-dir>/<scan datetime> with <server name>.json?
e.g.

$ vuls report --help
...
-results-dir string
    	/path/to/results (default "/home/mainek00n/github/github.com/MaineK00n/vuls/results")
...

$ ls /home/mainek00n/github/github.com/MaineK00n/vuls/results/2022-05-20T16:02:44+09:00/
vuls-target.json

For your information, the current vuls generates scan results in json format without any options(-to-localfile -format-json).

@CA-dfox
Copy link
Author

CA-dfox commented May 31, 2022

Thanks for that answer!

I wasn't looking at the date/time stamp or size to notice a change. Just that the JSON files were still JSON files.

@CA-dfox CA-dfox closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants