clearly i was not properly awake yesterday, after making sure the regex was correct 15 times, i realised i had forgotten
[LogOutput]
message_matcher = "TRUE"
[ElasticSearchOutput]
message_matcher = "TRUE"
in my hekad.toml
file
My complete file now looks like this :
[pos_log]
type = "LogfileInput"
logfile = "/home/sam/git/PosBranch/app/logs/dev.log"
decoder = "monolog_decoder"
[monolog_decoder]
type = "PayloadRegexDecoder"
match_regex = '^\[(?P<Timestamp>.*)\] (?P<Channel>.+?)\.(?P<Severity>[A-Z]+): (?P<Message>.*)'
timestamp_layout = "2006-01-02 15:04:05"
timestamp_location = "UTC" # optional, default value
[monolog_decoder.severity_map]
DEBUG = 7
INFO = 6
NOTICE = 5
WARNING = 4
ERROR = 3
CRITICAL = 2
ALERT = 1
EMERGENCY = 0
[monolog_decoder.message_fields]
Type = "monolog_log"
Logger = "sam"
Hostname = "local"
Channel = "%Channel%"
Message = "%Message%"
Payload = ""
[LogOutput]
message_matcher = "TRUE"
[ElasticSearchOutput]
message_matcher = "TRUE"
and messages are now rolling into kibana :)