public class ElasticSearchPlugin extends Object implements ActionPluginListener
| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_NAME |
static String |
PROP_FORWARDED_FOR
"forwarded-for" property is used for X-Forwarded-For HTTP header
|
static String |
PROP_INDEX
"index" property is used to indicate the index where the Events/Alerts will be written.
|
static String |
PROP_PASS
"pass" property is used as password for Basic credentical authentication
|
static String |
PROP_PROXY_REMOTE_USER
"proxy-remote-user" property is used for X-Proxy-Remote-User HTTP header
|
static String |
PROP_TOKEN
"token" property is used for Bearer HTTP authentication
|
static String |
PROP_TRANSFORM
"transform" defines an optional transformation expression based on JOLT Shiftr format to convert an
Event/Alert into a custom JSON format.
|
static String |
PROP_TYPE
"type" property is used to define the type under the inxed where the Events/Alerts will be written.
|
static String |
PROP_URL
"url" property is used to indicate the ElasticSearch server or servers to connect.
|
static String |
PROP_USER
"user" property is used as username for Basic credential authentication
|
| Constructor and Description |
|---|
ElasticSearchPlugin() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getDefaultProperties() |
Set<String> |
getProperties() |
void |
process(ActionMessage msg) |
protected String |
transform(Action a) |
protected void |
writeAlert(Action a) |
public static final String PLUGIN_NAME
public static final String PROP_URL
public static final String PROP_INDEX
public static final String PROP_TYPE
public static final String PROP_TRANSFORM
public static final String PROP_USER
public static final String PROP_PASS
public static final String PROP_FORWARDED_FOR
public static final String PROP_PROXY_REMOTE_USER
public static final String PROP_TOKEN
public Set<String> getProperties()
getProperties in interface ActionPluginListenerpublic Map<String,String> getDefaultProperties()
getDefaultProperties in interface ActionPluginListenerpublic void process(ActionMessage msg) throws Exception
process in interface ActionPluginListenerExceptionCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.