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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...