Created
March 1, 2014 16:41
-
-
Save TrafeX/9292679 to your computer and use it in GitHub Desktop.
Logstash configuration for import bank transactions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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