Open joe-at-startupmedia opened 2 months ago
I use vi with tabstops set to 8.
Log entries with fancy quotes. Ugh, that's a hell of a thing; If you made an optional sanitizer (either enabled on the commandline or as an option to exec -- maybe something like exec dequote <command>
) I'd happily accept it
Is that what they call them? fancy quotes? Looks more like horrendous quotes. I tried to find a configuration directive in modsec to adjust the log format but it doesn't seem to exist, at least it's not readily apparent. I'll see if I have some time to make that contribution. Yes something like dequote
seems like it would be useful, I was trying to find a way to make a useful abstraction there but I'm not at all familiar with that yacc parser which seems like it'd be involved here.
Thanks for contributing this library, I was looking for something to process log files that doesn't use a ridiculous amount of ram. low and behold a 17 year C program would do it!
I'm trying something pretty simple here without having to do a bunch of regex parsing which I think is probably the ideal solution but not my preferred solution. I'm trying to send the line below into a command which would match the following:
That results in the following error:
The solution I came up with was replacing backticks and single quotes with a double quote: https://github.com/Orc/cwatch/pull/1/commits/e9e9511714af0f5d547955f199c73f900402e72a.
Is there something built into cwatch that can automatically handle this?
Btw, what is the format of the code called? Doesn't seem to anything offered by indent out of the box and the tabs look terrible in vim. Do you have a particular formatting tool you use?