Open 51-code opened 6 months ago
Describe the bug
index=abc earliest =-4y | timechart count by source avg(host) by sourcetype works, even though only one BY clause should be possible.
index=abc earliest =-4y | timechart count by source avg(host) by sourcetype
Expected behavior
A list of aggregates can be given, but there should only be one by clause for all of them.
Example: index=abc earliest =-4y | timechart count avg(host) by sourcetype where both count and avg(host) will be grouped by the sourcetype column.
index=abc earliest =-4y | timechart count avg(host) by sourcetype
count
avg(host)
sourcetype
How to reproduce
Run the query above.
Screenshots
Software version
5.4.0
Desktop (please complete the following information if relevant):
Additional context
Internal PR created.
However, not going to merge until the relevant changes are ready in PTH-10.
Describe the bug
index=abc earliest =-4y | timechart count by source avg(host) by sourcetype
works, even though only one BY clause should be possible.Expected behavior
A list of aggregates can be given, but there should only be one by clause for all of them.
Example:
index=abc earliest =-4y | timechart count avg(host) by sourcetype
where bothcount
andavg(host)
will be grouped by thesourcetype
column.How to reproduce
Run the query above.
Screenshots
Software version
5.4.0
Desktop (please complete the following information if relevant):
Additional context