-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
58 lines (41 loc) · 1.83 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
README for haproxy-log-replay-tool
BUILDING
]$ ant package
INSTALLATION
The ant deploy.* targets install the system into /opt/logreplay. Configuration
files will be deployed to /opt/logreplay/haproxy-log-replay-tool/src/resources/.
Scripts will be installed to /opt/logreplay/haproxy-log-replay-tool/src/bin/.
To install the system with a simple configuration file enabling you to replay
an existing haproxy log:
]$ ant deploy.development
The configuration file installed by deploy.development will enable the replayer
to consume a single log file called
/opt/logreplay/haproxy-log-replay-tool/logs/haproxy.log
To install the system with a configuration suitable for "tailing" the files in
a directory as they are created (e.g. to consume the output of something like
the Facebook Scribe log aggregating server):
]$ ant deploy.production
RUNNING
The simplest case is just to point the system at an existing haproxy log file and replay the entire file.
]$ ant package
]$ ant deploy.development
]$ (cd /opt/logreplay; sh ./src/bin/run.sh)
The deploy.production configuration requires jnotify to be installed.
(for windows, jnotify.dll needs to be copied into a directory referenced by the
PATH env var)
HAPROXY CONFIG
The default haproxy log parser assumes a configuration which captures Referer,
User-Agent, and X-Forwarded-For. E.g.:
frontend leads-http-fe
bind *:80
mode http
log global
option httplog
option dontlognull
option httpclose
option forwardfor
clitimeout 30000
default_backend my--http-be
capture request header Referer len 192
capture request header User-Agent len 128
capture request header X-Forwarded-For len 192