Hello,
I am new to Heka,
iHave a probleme to construct timestamp because the year is the name
file
[PanneLog]
type="LogstreamerInput"
log_directory = "/media/data/Var_nrh/log"
file_match = 'panne_(?P<Year>\d+)'
priority = ["^Year"]
decoder = "PanneDecoder"
[PanneDecoder]
type="PayloadRegexDecoder"
match_regex='(?P<Day>\d{2})/(?P<Month>\d{2})(\t){0,2}(?P<Observation>(\s{0,2}\w*)*)'
timestamp_layout = "02/01"
[PanneDecoder.message_fields]
Type = "pan"
Day = "%Day%"
Month = "%Month%"
Observation = "%Observation%"
Timestamp = "%Day%/%Month%/%Year%"
[PayloadEncoder]
append_newlines = false
[LogOutput]
message_matcher = "TRUE"
encoder = "PayloadEncoder"
[ESJsonEncoder]
es_index_from_timestamp = true
type_name = "%{Type}"
index = "heka"
[ESJsonEncoder.field_mappings]
Timestamp = "@timestamp"
[ElasticSearchOutput]
server = "http://master-rsdb:9200"
message_matcher = "Type == 'pan'"
encoder = "ESJsonEncoder"
flush_interval = 50
Any help would be apriciate
Lucile _______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka