Getting Data In

fetching all fields into a CSV

tomasv
Explorer

When I use "export" from within the Splunk interface, the CSV contains all fields that exist in at least one row (and technical fields like punctuation etc.).

When I do fetch the data using Splunk SDK (Python), the file contains just some basic fields (_raw, _time, host, index, linecount etc.) but not fields from within the messages. Is it possible to ask get all the fields, i.e. the same output as from within the Splunk interface? Perhaps some command / parameter?

Also, I'd like to get the _time as unix timestamp (number), but the SDK always returns human-readable format (2012-06-11T...).

Tags (3)
0 Karma

seansms
New Member

The same thing goes for when the CSV is included in the alert email. I only get the standard columns there and not the fields. When I export manually, I get the fields.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...