Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@2013techsmarts
Created January 18, 2019 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 2013techsmarts/eb7a065267bb119fd6c71d211d0ab56c to your computer and use it in GitHub Desktop.
Save 2013techsmarts/eb7a065267bb119fd6c71d211d0ab56c to your computer and use it in GitHub Desktop.
input {
file {
path => "/Users/sjana/Documents/POC/ELK/APIGEE_LOG.log"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => "|"
columns => ["MessageId","API_PROXY_NAME","RESPONSE_STATUS_CODE","TARGET_RECEIVED_START_TIME","TARGET_RECEIVED_END_TIME","ENVIRONMENT_NAME","CLIENT_RECEIVED_START_TIME","CLEINT_SENT_END_TIME"]
remove_field => "message"
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "apiproxies-log"
}
stdout {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment