Getting Data In

Format Splunk Output - How to add a title line in CSV output?

abn
New Member

Hi,

I am generating a report using data from database.
I have a tabular format in my CSV.
Is it possible via Splunk to add a header/title to the CSV file?

I was wondering if there is a way to do it via Splunk.
May be not as a built-in splunk functionality.But with a script or something. But this script needs to run on Splunk and which in turn formats and sends the formatted CSV to an email.

The reason, I am asking, is because I am came across 'Run a Script' during scheduling. But not sure if that can be used or if yes, how to use it?

Tags (1)
0 Karma
1 Solution

grijhwani
Motivator

CSV is a flat structured data format, and naturally contains column headers. A "title" would be a feature of some interpretation of that data (e.g. when opened in a spreadsheet program), and is beyond its context.

View solution in original post

grijhwani
Motivator

CSV is a flat structured data format, and naturally contains column headers. A "title" would be a feature of some interpretation of that data (e.g. when opened in a spreadsheet program), and is beyond its context.

Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...