Hi Kiyoto
I'm pretty much happy to use any mthod but I am using syslog for other stuff as well. Currently MySQL error log entries are added like this...
{
"_index": "logstash-2014.06.17",
"_type": "fluentd",
"_id": "09pcufOPSY-IYxbhJ3XRCA",
"_score": null,
"_source": {
"message": "Version: '5.5.36-MariaDB-log' socket: '/var/lib/mysql/mysql.sock' port: 3307 MariaDB Server",
"@timestamp": "2014-06-17T19:05:59+01:00"
},
"sort": [
1403028359000,
1403028359000
]
}
If I could add a custom field to this then I think that would work for me. Is it possible to do this dynamically, i.e. determine the hostname as appropriate rather than hard coding and duplicating inputs?
Cheers,
Rhys