-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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] make regex work on field keys and values #2715
Comments
It occurred to me what is different in this case. So the difference it would seem is that regex only works on tags not fields. |
I moved the field values into tags and confirmed I was then able to use a regex. |
What if you make the regex |
I had tried that too without success before moving the columns to tags. |
What's the status on this? We'd really appreciate this functionality. |
+1 this is needed incredibly badly now that all of telegraf is reporting measurements in the fields. Dashboard building just got ridiculously tedious. I also wanted to point out that this needs to support regex not only in the
This avoids having to specify every single cpu value separately. |
@thunderstumpges I think your request is different from the one expressed in this issue. Can you make a new issue for that one describing what you want to be able to do and the expected output when you run the above command and mention me on it? Thanks. |
How is this different? The issue says "Make regex work on field keys and values". I only said it should work in the select clause and the where clause. If you think this needs to be a separate issue, I'd gladly create it and reference this one. |
@jsternberg this is done, see #5955 |
Thanks @thunderstumpges. Do you also want the ability to do something like this?
Where you have a bunch of field keys such as |
Thanks, I am mostly needing to not need to specify individual fields in the select clause. I don't have an immediate use case for that last scenario. |
I have a use case for something like such:
Basically when importing a list into influxdb I "flatten" into |
SELECT value FROM cpu WHERE /cpu_.*/ > 10 is this supported in V1.3 ? getting syntax error right now in V1.3 ,if its is plese provide the regx Examples. Peroformance impact if this is running on Cluster node. |
The following query returns results:
select * from "multiHistReport" where time > now() - 1h and eventDescription='component ready' and userAgent= 'Chrome' and pageHash= '_iterationstatus' order by asc
but this query does not:
select * from "multiHistReport" where time > now() - 1h and eventDescription='component ready' and userAgent=~ /Chrome/ and pageHash= '_iterationstatus' order by asc
The difference is the regex for userAgent.
I have found influx 0.9 to require a space after ~ and other regex expressions work fine so not sure why this one does not.
The text was updated successfully, but these errors were encountered: