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

Tags are also created as fields #18

Open
skladd opened this issue Aug 15, 2017 · 0 comments
Open

Tags are also created as fields #18

skladd opened this issue Aug 15, 2017 · 0 comments

Comments

@skladd
Copy link

skladd commented Aug 15, 2017

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
---- ------ -------- --- ----- ------- ------- ---------
[...]
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