Skip to content

Tags are also created as fields #18

@skladd

Description

@skladd

Apparently the configured tags are stored as tags and fields in InfluxDB.
Is this the intended behavior? I wouldn't expect them to be stored as fields. Or am I missing something?

config := &logrus_influxdb.Config{
	Tags:       []string{"service", "action"},
}

in InfluxDB:

> use logrus
Using database logrus

> show tag keys
name: logrus
tagKey
------
action
level
service

> show field keys
name: logrus
fieldKey fieldType
-------- ---------
action   string
err      string
message  string
service  string

> select * from logrus
name: logrus
time action action_1 err level message service service_1
---- ------ -------- --- ----- ------- ------- ---------
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions