Skip to content

Instantly share code, notes, and snippets.

@TrafeX
Created March 1, 2014 16:41
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 TrafeX/9292679 to your computer and use it in GitHub Desktop.
Save TrafeX/9292679 to your computer and use it in GitHub Desktop.
Logstash configuration for import bank transactions
input {
file {
path => ["bank/*.csv"]
start_position => "beginning"
}
}
filter {
csv {
columns => ['date', 'name', 'account', 'contra-account', 'code', 'increasedecrease', 'amount', 'category', 'description']
}
date {
match => [ "date", "dd-MM-YY" ]
}
mutate {
convert => [ "amount", "float" ]
}
}
output {
elasticsearch {
embedded => true
index => 'logstash-%{+YYYY.MM}'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment