Commit 2d5f0144 authored by CompileNix's avatar CompileNix

add defaultMessageTemplateFilter to example config

parent 9f83dd59
......@@ -4,8 +4,32 @@ class Config {
'test.txt',
'test1.txt'
];
this.defaultMessageTemplateFilter = /^\[((\d{1,2}\/\w{3}\/\d{4}):(\d{2}:\d{2}:\d{2}) ([+-]\d{4}))\] status:(\d{3}) request_time:(\d{1,}.\d{3}) upstream_response_time:(\d{1,}.\d{3}) bytes_sent:(\d{1,}) client_ip:(\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b|(:{0,2}[\da-f]{1,4}){1,8}) domain:([\w.-]*) request:"((\w{3,7}) (\/[\w-.,_~:<>\\/[\]%@!$'()*+;?=&#]*) HTTP\/(\d\.\d))" referer:"([\w-.,_~:<>\\/[\]%@!$'()*+;?=&#]*)" user_agent:"([\w-.,_~: \/[\]%@!$'()*+;?=&#]*)"$/g
this.defaultMessageTemplateFilterMatchingGroupNames = {
All: 0,
DateTime: 1,
Date: 2,
Time: 3,
TimeZone: 4,
StatusCode: 5,
RequestTime: 6,
UpstreamResponseTime: 7,
BytesSent: 8,
ClientIp: 9,
Domain: 11,
Request: 12,
Method: 13,
Path: 14,
ProtocolVersion: 15,
Referer: 16,
UserAgent: 17
};
this.expressions = [
{ match: /HTTP\/\d\.\d\" 404/g, subject: 'HTTP 404: ' },
{
match: /HTTP\/\d\.\d\" 404/g,
subject: 'HTTP 404: ',
//messageTemplateFilter: /()/g
},
{ match: /HTTP\/\d\.\d\" 5\d{2}/g, subject: 'HTTP 5xx: ' }
];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment