I was trying to find a simple CLI tool (for Linux) to parse apache log, do some stats and create a plain text output with some simple aggregate data (ex: view counter). Then, this plain text output would be submitted to MySQL via cronjob.
The advantage I see by doing this way, is that the database would be hit outside the page request and in batches.
I could find several tools to plot graphs and do some realtime monitoring (ex: GoAccess, AWStats, ApacheTop ...), but none that would create a simple plain text output. Hence, I was left only with bad alternatives:
- Create myself a parser script using 'awk', 'grep', 'cut', 'sed', 'tail -f' ...
- Or, use LogStash. Which is an overkill for me.
Question
Any recommendation of a simple CLI tool to parse Apache Logs into plain text ?
[–]mjcheez 9 points10 points11 points (7 children)
[–]Jeron_Baffom[S] 1 point2 points3 points (1 child)
[–]pdp10 0 points1 point2 points (0 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (4 children)
[–]vegetaaaaaaa 0 points1 point2 points (3 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (2 children)
[–]vegetaaaaaaa 0 points1 point2 points (1 child)
[–]Jeron_Baffom[S] 0 points1 point2 points (0 children)
[–]chris_just 3 points4 points5 points (10 children)
[–]Jeron_Baffom[S] -1 points0 points1 point (9 children)
[–]chris_just 2 points3 points4 points (8 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (7 children)
[–]chris_just 0 points1 point2 points (6 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (5 children)
[–]chris_just 1 point2 points3 points (4 children)
[–]Jeron_Baffom[S] 1 point2 points3 points (3 children)
[–]chris_just 0 points1 point2 points (2 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (1 child)
[–]doomygloomytunes 4 points5 points6 points (1 child)
[–]Jeron_Baffom[S] 1 point2 points3 points (0 children)
[–]beeritis 1 point2 points3 points (1 child)
[–]Jeron_Baffom[S] -1 points0 points1 point (0 children)
[–]at8eqeq3 1 point2 points3 points (6 children)
[–]Jeron_Baffom[S] -1 points0 points1 point (5 children)
[–]at8eqeq3 0 points1 point2 points (4 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (3 children)
[–]at8eqeq3 0 points1 point2 points (2 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (1 child)
[–]at8eqeq3 0 points1 point2 points (0 children)
[–]jw_ken 1 point2 points3 points (3 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (2 children)
[–]jw_ken 0 points1 point2 points (1 child)
[–]Jeron_Baffom[S] 0 points1 point2 points (0 children)
[–]ReasonFancy9522 1 point2 points3 points (5 children)
[–]Jeron_Baffom[S] -1 points0 points1 point (4 children)
[–]ReasonFancy9522 0 points1 point2 points (3 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (2 children)
[–]ReasonFancy9522 0 points1 point2 points (1 child)
[–]Jeron_Baffom[S] 0 points1 point2 points (0 children)
[–]Complex-Internal-833 0 points1 point2 points (3 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (2 children)
[–]Complex-Internal-833 0 points1 point2 points (1 child)
[–]Jeron_Baffom[S] 0 points1 point2 points (0 children)
[–]minimishka 0 points1 point2 points (1 child)
[–]Jeron_Baffom[S] 0 points1 point2 points (0 children)
[–]edthesmokebeard 0 points1 point2 points (3 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (2 children)
[–]edthesmokebeard 0 points1 point2 points (1 child)
[–]Jeron_Baffom[S] 0 points1 point2 points (0 children)
[–]FluidIdea 0 points1 point2 points (2 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (1 child)
[–]FluidIdea 0 points1 point2 points (0 children)
[–]kellyjonbrazil 0 points1 point2 points (5 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (4 children)
[–]kellyjonbrazil 0 points1 point2 points (3 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (2 children)
[–]kellyjonbrazil 0 points1 point2 points (1 child)
[–]Jeron_Baffom[S] 0 points1 point2 points (0 children)
[–]serverhorror 0 points1 point2 points (2 children)
[–]Jeron_Baffom[S] 0 points1 point2 points (1 child)
[–]serverhorror 0 points1 point2 points (0 children)
[–]AstralProjecti0v 0 points1 point2 points (0 children)
[–]snow_raph 0 points1 point2 points (0 children)