[ Feature Request ] wildcards support for tag_keys
Opened this issue · 0 comments
ash0080 commented
Practically, json format data will be flattened before sending to influxdb ,
example:
// product log
{
path: 'xxxxxxxx',
product:
{
id: 'xxx',
'name': 'xxx'
}
message: 'xxxx'
}
// task log
{
path: 'xxxxxxxx',
task:
{
id: 'xxx',
user:
{
id: 'xxx',
nickname: 'xxx'
},
product:
{
id: 'xxx',
'name': 'xxx'
}
},
message: 'xxxx'
}
logger.emit('info', flatten(obj))
if I want to mark all id as tags
I have to set tag_keys = [ 'product.id', 'task.user.id', 'task.product.id' ]
With more nested data structure, I have to mark more stupid chained key name manually
so could we add feature support wildcards
**.id as fluent <match>
pattern
or regex format /$id/
???