This is a Java plugin for Logstash. The plugin checks the directory
for new captured Adabas Auditing messsages and process them.
To parse the Adabas Auditing messages it is required that the schema (metadata) of the data is available for the plugin. These schemas are provided as an Adabas Auditing message
and is stored locally at the metaDir
location. So, it is essential to process the message with schemata first which is available for example data in the assets
folder.
When the plugin is started, it also starts a REST server for the schemata when the restURL
contains localhost
.
The build of this plugin requires the access to an installation of Logstash.
- Clone the Logstash repository
- Assemble Logstash with the command
./gradlew assemble
- Clone this repository
- Set the property variable LOGSTASH_CORE_PATH. This could be done in gradle.properties file
- Assemble plugin with the command
./gradlew assemble gem
After that successful build a file logstash-input-adabas_auditing_file_input--java.gem is created in the root directory of the project.
See also How to write a Java input plugin.
To install the plugin use the command
logstash install --no-verify --local <full-path>/logstash-input-adabas_auditing_file_input-x.x.x-java.gem
Execute the command logstash -f <file>
where <file>
is your Logstash configuration file. An example is below.
This configuration reads the data from the Adabas Auditing Server and write the data to stdout
.
input {
adabas_auditing_file_input {
directory => "/Users/ger/tmp/ala"
metaDir => "/Users/ger/tmp/meta"
}
}
output {
stdout {
codec => rubydebug
}
}
Parameter | Description | Type | Default Value |
---|---|---|---|
directory | Directory for the captured data | String | "./data" |
metaDir | Directory for the metadata | String | "./meta" |
type | Data type | String | "adabas" |