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

Cannot facet-query for 'query' facet #16

Open
jjhart opened this issue Nov 7, 2017 · 0 comments
Open

Cannot facet-query for 'query' facet #16

jjhart opened this issue Nov 7, 2017 · 0 comments

Comments

@jjhart
Copy link
Contributor

jjhart commented Nov 7, 2017

It confuses the cmd line parser:

$ scalyr facet-query 'tag="foo"' query --start=1h --count=1
usage: scalyr [-h] [--version] [--server SERVER] [--token TOKEN] [--verbose]
              [--no-escape-unicode] [--start START] [--end END]
              [--count COUNT] [--mode {head,tail}] [--columns COLUMNS]
              [--output {singleline,multiline,csv,json,json-pretty}]
              [--priority {high,low}]
              {timeseries-query,list-files,delete-file,create-timeseries,query,facet-query,numeric-query,timerseries-query,tail,get-file,put-file}
              [filter]
scalyr: error: unrecognized arguments: query

You can workaround the issue by using the $ form (and remember to single-quote it!):

$ scalyr facet-query 'tag="foo"' '$query' --start=1h --count=1
count,value
...
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