SPLK-1002 · Question #255
How could the following syntax for the chart command be rewritten to remove the OTHER category? (select all that apply)
The correct answer is A. | chart count over CurrentStanding by Action useother=f C. | chart count over CurrentStanding by Action limit=10 useother=f. The OTHER category in the chart command is controlled by the useother option. Setting useother=f (false) removes the OTHER bucket entirely. Option A is valid because it directly sets useother=f. Option C is also valid - it explicitly sets limit=10 (which caps the number of distin
Question
How could the following syntax for the chart command be rewritten to remove the OTHER category? (select all that apply)
Exhibit
Options
- A| chart count over CurrentStanding by Action useother=f
- B| chart count over CurrentStanding by Action usenull-f useother-t
- C| chart count over CurrentStanding by Action limit=10 useother=f
- D| chart count over CurrentStanding by Action limit-10
How the community answered
(26 responses)- A73% (19)
- B19% (5)
- D8% (2)
Explanation
The OTHER category in the chart command is controlled by the useother option. Setting useother=f (false) removes the OTHER bucket entirely. Option A is valid because it directly sets useother=f. Option C is also valid - it explicitly sets limit=10 (which caps the number of distinct values shown) and then useother=f to suppress the catchall OTHER category. Option B uses incorrect dash syntax (usenull-f useother-t) instead of equals signs, and also sets useother=t which would keep OTHER. Option D similarly uses a dash (limit-10) instead of limit=10, making it invalid SPL syntax.
Topics
Community Discussion
No community discussion yet for this question.
