Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Feature Request ] wildcards support for tag_keys #98

Open
ash0080 opened this issue Aug 10, 2019 · 0 comments
Open

[ Feature Request ] wildcards support for tag_keys #98

ash0080 opened this issue Aug 10, 2019 · 0 comments

Comments

@ash0080
Copy link

ash0080 commented Aug 10, 2019

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/

???

@ash0080 ash0080 changed the title [ Feature Request ] wildcat support for tag_keys [ Feature Request ] wildcards support for tag_keys Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant