Open issmirnov opened 8 years ago
Wouldn't it be easier to use the authorstats-plugin?
No, this solves a different problem. There are various frameworks such as the ELK Stack and other log aggregators that have plugins well suited for sucking up Apache/Nginx formatted logs from text files.
The plugin you linked will only display that information on the wiki level, and will not write to a file.
Hello,
I wanted to ask if you would be open to a PR that implements logging of page edits (Action Mode:
edit
), in addition to page accesses (Action Mode:show
).My use case and rationale:
edit
action, theaccess.log
is not very helpful - I can attempt to create some convoluted grok rule that will check that the ref page has a?do=edit
suffix but it's pretty painful. In addition, if I were to use the grep trick for referring page, then I would trigger accesses to media such as CSS, the logo, and other payloads.My proposed approach:
action.php
to contain methodslogShowAction
andlogEditAction
instead oflogAccess
. These will write toaccess.log
andedit.log
respectively.logPageAccess
, branching on$ACT
I would love any feedback or suggestions you may wish to deliver, and if all is well I'd be happy to implement this and send in a PR within a few days. I think with the rise of various monitoring solutions it would benefit people to have this convenient file that they can pull.