public class DNSLookup extends stream.AbstractProcessor implements EventProcessor<AuditEvent>
A simple processor to enrich events by looking up the REMOTE_ADDR in the DNS service and placing the resolved name in REMOTE_HOST.
DELETE_FLAG| Constructor and Description |
|---|
DNSLookup() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCacheSize() |
String |
getKey() |
String |
getTarget() |
String |
lookup(String host) |
stream.Data |
process(stream.Data data) |
AuditEvent |
processEvent(AuditEvent event,
Map<String,Object> context)
This method is called upon event reception.
|
String |
reverseLookup(String addr) |
void |
setCacheSize(Integer cacheSize) |
void |
setKey(String key) |
void |
setTarget(String target) |
public String getKey()
public void setKey(String key)
public String getTarget()
public void setTarget(String target)
public Integer getCacheSize()
public void setCacheSize(Integer cacheSize)
public stream.Data process(stream.Data data)
process in interface stream.Processorpublic AuditEvent processEvent(AuditEvent event, Map<String,Object> context) throws Exception
EventProcessorprocessEvent in interface EventProcessor<AuditEvent>ExceptionCopyright © 2014 jwall.org. All Rights Reserved.