> I suspect I work on an older Megatron version. The one I use
> is from about August last year. Was the rewriters implemented back then?
True, AttributeValueRewriter have not been released and is only available in
the GitHub-repo. You need to build Megatron using the Ant-script to use it.
> Any quick fix for this, I mean get a missing class, and add the function
> call in the parser, or would there be lot more dependencies?
One workaround is to not parse the hostname-field and let HostnameDecorator
do a reverse DNS lookup and add the hostname (if available).
First add HostnameDecorator:
# IP, ASN and country code exists already in file, but hostname is
# re-evaluated due to "null" strings in the field.
decorator.classNames.0=se.sitic.megatron.decorator.HostnameDecorator
Then skip parsing of $hostname by replacing it with "(?:".*?"|""|)" (without quotes).
Replace:
# Skips the following fields: protocol, tag, quote, region, and city.
parser.lineRegExp=^"$logTimestamp","$ipAddress",(?:".*?"|""|),$port,$hostname,(?:".*?"|""|),(?:".*?"|""|),$asn,"$countryCode",(?:".*?"|""|),(?:".*?"|""|)
to the following:
# Skips the following fields: protocol, hostname (re-evaluated), tag, quote, region, and city.
parser.lineRegExp=^"$logTimestamp","$ipAddress",(?:".*?"|""|),$port,(?:".*?"|""|),(?:".*?"|""|),(?:".*?"|""|),$asn,"$countryCode",(?:".*?"|""|),(?:".*?"|""|)
> Othwerwise this seems to be a job created for the practical extraction
> and reporting languange ;)
Nooooo, please don't mention the P-language again on this list :)
/Tor