Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
facilities:slq_wiki:logging [2019/12/11 14:31] Andrei Maberley |
facilities:slq_wiki:logging [2019/12/12 09:59] Andrei Maberley [Accessing Metadata] |
||
---|---|---|---|
Line 29: | Line 29: | ||
=====Parsing the access.log===== | =====Parsing the access.log===== | ||
- | In this case I've copied the access log from / | + | In this case I've copied the access log from /data/meta/access.log to work on it. We want: |
* quarterly log | * quarterly log | ||
Line 66: | Line 66: | ||
To work out how many pages have been created, we need to go back to dokuwiki' | To work out how many pages have been created, we need to go back to dokuwiki' | ||
- | | + | |
- | " | + | " |
We only need the first line of each file called .changes. | We only need the first line of each file called .changes. | ||
Line 80: | Line 80: | ||
Then we want to filter out our internal users with grep, and use the -c option to tally the output. | Then we want to filter out our internal users with grep, and use the -c option to tally the output. | ||
- | grep -v -c --line-buffered | + | grep -v -c --line-buffered |
Finally lets turn on the globstar in our shell so we can use head recursively. | Finally lets turn on the globstar in our shell so we can use head recursively. |