- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oren
Explorer
09-24-2010
06:42 PM
How do I format the output to have comma separators - I want 1,234,567, not 1234567. Any easy way?
Given a query like:
eventtype=request | sistats sum(http_bytes) as bytes by http_domain | sort -bytes | head 100
I'd like bytes to be more human readable.
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stephen_Sorkin

Splunk Employee
09-24-2010
06:52 PM
You can use the tostring(X, "commas")
function in eval (http://www.splunk.com/base/Documentation/latest/SearchReference/CommonEvalFunctions):
eventtype=request | stats sum(http_bytes) as bytes by http_domain | sort -bytes | eval bytes = tostring(bytes, "commas") | head 100
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
juanxiayan
Explorer
04-29-2013
09:01 PM
If you said that, I can't draw chart(or graph).
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Stephen_Sorkin

Splunk Employee
09-24-2010
06:52 PM
You can use the tostring(X, "commas")
function in eval (http://www.splunk.com/base/Documentation/latest/SearchReference/CommonEvalFunctions):
eventtype=request | stats sum(http_bytes) as bytes by http_domain | sort -bytes | eval bytes = tostring(bytes, "commas") | head 100
