mikkolehtisalo / mod_gllog Goto Github PK
View Code? Open in Web Editor NEWApache module for enhancing logging of graylog-web
License: Apache License 2.0
Apache module for enhancing logging of graylog-web
License: Apache License 2.0
Hi,
Great job, I can intall mod_gllog!!
You wrote an comment but I did not realize that the thread was closed. You wrote an comment but I did not realize that the thread was closed.So I have decided to open a new problem.
Now I have a new problem, the results look like the following:
192.168.100.4 - - [03/Mar/2016:13:13:56 +0100] "GET /a/connection/available HTTP/1.1" 200 458 "https://192.168.100.179/login" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-" "-" "invalid"
192.168.100.4 - - [03/Mar/2016:13:18:35 +0100] "POST /a/metrics/205/1qenj1g1/xhr?t=1457007401883 HTTP/1.1" 200 1129 "https://192.168.100.179/gettingstarted" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-" "-" "invalid"
192.168.100.4 - - [03/Mar/2016:13:13:54 +0100] "GET /assets/fonts/OpenSans-Light-webfont.eot? HTTP/1.1" 304 197 "https://192.168.100.179/login" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-" "-" "invalid"
192.168.100.4 - - [03/Mar/2016:13:13:56 +0100] "GET /a/connection/available HTTP/1.1" 200 458 "https://192.168.100.179/login" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" "-" "-" "invalid"
I can not see the name of the authenticated neither the session id. This fields are blank ("-" "-").
Please, Can you help me?
Thanks you very much.
Regards.
Apache on RHEL7/CentOS7 is compiled using APR 1.4.8.
This is not enough for this module, it's missing apr_escape.h for apr_pescape_hex and apr_punescape_hex.
apxs -c mod_gllog.c
/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -c -o mod_gllog.lo mod_gllog.c && touch mod_gllog.slo
mod_gllog.c:6:24: fatal error: apr_escape.h: No such file or directory
#include "apr_escape.h"
^
compilation terminated.
apxs:Error: Command failed with rc=65536
.
To work around this problem, you need to compile apr-1.5.2, compile mod_gllog, and preload httpd with apr-1.5.2 in order to work.
So download apr-1.5.2 from https://apr.apache.org, extract and then
configure --prefix=/opt/apr-1.5.2 && make install
Then compile and install the module using
apxs -I/opt/apr-1.5.2/include/apr-1 -L/opt/apr-1.5.2/lib -i -c mod_gllog.c
Finally preload and restart httpd
echo "LD_LIBRARY_PATH=/opt/apr-1.5.2/lib" >> /etc/sysconfig/httpd
service httpd restart
\# httpd -V
Server version: Apache/2.4.6 (CentOS)
Server built: Nov 19 2015 21:43:13
Server's Module Magic Number: 20120211:24
Server loaded: APR 1.5.2, APR-UTIL 1.5.2
Compiled using: APR 1.4.8, APR-UTIL 1.5.2
Now it will work :)
Hello,
I followed your instructions to install mod_gllog and I found the following problems;
FIRST ERROR:
The problem was " mod_gllog.c : 258: error: ' AP_DECLARE_MODULE ' function initializes a variable" (error in the source code ) .
I modified the source code and I could compile.
SECOND ERROR:
When configuring the module in Apache, I get the error:
Starting httpd : httpd : Syntax error in line 204 of /etc/httpd/conf/httpd.conf : API module structure ' gllog_module ' in the file
/usr/lib64/httpd/modules/mod_gllog.so is illegible - 41503232 expects the firm, but saw 00000000 - maybe this is not an Apache module DSO , or was compiled for a different version of Apache ?
Can you help me?
Thank you very much for your input and attention
Regards!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.