I'm not sure if this is a graylog2 question or a fluentd question, so I'm going to assume the latter for the sake of getting this started.
I've got td-agent paired with graylog 1.1, and everything is working great. The thing I'm having trouble figuring out is how to change the 'source' of these messages. Here's what I've got now:
I'd like to stick a prefix on the 'source' value that is currently in there denoting which Google Compute project the host is in. We have overlapping hostnames between projects, so this is a super important distinction to make. It looks like 'source' defaults to the machine's hostname.
My config currently looks like this:
Notice my current (failed) attempt at the top using record_transformer. My first attempt was to change 'source' directly there. This looks to have added a 'source' field to the payload, but graylog is still seeing the old source value (sans prefix):
I then tried 'hostname', thinking it was a reasonable guess. I also saw mention of a host_param value, so that was attempted with no success as well. Right now I'm leaving the 'hostname' field in, but it's not optimal since graylog is grouping some of the volume metrics by the 'source' field.
Any ideas?