influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

how to show key values filter by other key values

Open qi-zhou opened this issue 9 years ago • 6 comments

I am a beginner, there is a problem confused me, can you help me? many thanks!

influx -version
InfluxDB shell version: 1.2.2

for example:

> SHOW TAG VALUES FROM "system" WITH KEY = "group"
name: system
key   value
---   -----
group app
group backend
group system
> SHOW TAG VALUES FROM "system" WITH KEY = "host"
name: system
key  value
---  -----
host applog-1
host appmq_1
host appmq_2
host appmq_3
host backend_1
host backend_2
host backend_3
host backend_4
.......................

I want to list host where in my server group,maybe as below: influx

how to query ?

qi-zhou avatar May 10 '17 13:05 qi-zhou

I am also looking for same....

rr-paras-patel avatar May 12 '17 23:05 rr-paras-patel

@qi-zhou SHOW TAG VALUES FROM "system" WITH KEY = "host" WHERE host =~ /^$servergroup*/ it should be work. include "all" option with '*' value.

rr-paras-patel avatar May 13 '17 22:05 rr-paras-patel

I have try it, but it's still not work....and I folow by official doc try it as follows: issu01 issue02 but the host can't associate with the tags.......

qi-zhou avatar May 22 '17 12:05 qi-zhou

@qi-zhou assuming I understand your issue, SHOW TAG VALUES FROM "system" WITH KEY = "host" WHERE group =~ /$group/ in the Query field should do it.

juanpaulo avatar Aug 22 '18 08:08 juanpaulo

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 24 '19 04:07 stale[bot]

This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.

stale[bot] avatar Jul 31 '19 05:07 stale[bot]