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

Add function show chosen parameters for each PARTS #2

Open
dthauvin opened this issue May 25, 2016 · 1 comment
Open

Add function show chosen parameters for each PARTS #2

dthauvin opened this issue May 25, 2016 · 1 comment

Comments

@dthauvin
Copy link

Hi metagriffin

Is it possible to add a function to display only the "parameters" that we chose for each PARTS:
Example :
modseclogc --match-path /ajs.php --show-request-line --show-params Referer,X-Forwarded-For --hide-parts FHKZA modsec_audit.log

expected result :
GET /ajs.php?zid=13013 HTTP/1.1
--5a1c1823-B--
X-Forwarded-For: XXX.XXX.XXX.XX
Referer: http://www.test.fr/choserien/

thanks

@metagriffin
Copy link
Owner

hm... the problem with this is which audit part the --show-params option applies to. to be explicit, it would need to be something like --show-request-headers, but then for symmetry, we'd need to create one for every audit part (e.g. --show-response-headers, --show-trailer-params, ...).

i'll have to give this some thought.

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