Skip to content

mgerth/adamf-logstash-auditing-file-input

Repository files navigation

Logstash Adabas Auditing Input File Plugin

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.

Build

The build of this plugin requires the access to an installation of Logstash.

  1. Clone the Logstash repository
  2. Assemble Logstash with the command ./gradlew assemble
  3. Clone this repository
  4. Set the property variable LOGSTASH_CORE_PATH. This could be done in gradle.properties file
  5. 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.

Install 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

Run Logstash

Execute the command logstash -f <file> where <file>is your Logstash configuration file. An example is below.

Plugin Configuration Example

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
  }
}

Plugin Parameter

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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages