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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...