Getting Data In

suppressing underscore prefixed columns from report

RVDowning
Contributor

I have a report:
blah, blah, blah
| stats count as NbrSaves, dc(UserId) as DistinctUserIds
by _date_numericyear, _date_numericmonth, date_year, date_month, date_mday, date_hour, _date_numericminute
| sort 0 + _date_numericyear, _date_numericmonth, date_mday, date_hour, _date_numericminute
| rename date_year as Year, date_month as Month, date_mday as Day, date_hour as Hour, _date_numericminute as Minute
| outputcsv AffinityPlanSaveRate.csv

It outputs too many items for the screen and is instead sent to a report, but _date_numericyear and _date_numericmonth (which are computed fields just used for ordering purposes) also appear in the saved file, although not on the display. I thought the underscore would suppress them from both. How can I also suppress them from the generated report?

0 Karma

sdaniels
Splunk Employee
Splunk Employee
0 Karma

RVDowning
Contributor

Ah, didn't know about the + and - signs. Thanks much.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...