Reporting

How to export logs to Excel or text file

mbadar
Engager

Hello,

Is it possible to export logs to text or excel file?

Let's say - that I filtered logs originating from device 10.1.1.100 and 10.1.1.200 and want all the logs to be exported to excel or text file - how would I go about do so?

Thank you

Tags (2)
1 Solution

MHibbin
Influencer

@mbadar,

You should add "|outputcsv <filename>" to the end of your search syntax.

For example,

ip=10.1.1.* | outputcsv myresults.csv

Here is the docs for this...

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputcsv

I find this quite good in automating the output of this data.

Regards,

MHibbin

View solution in original post

MHibbin
Influencer

@mbadar,

You should add "|outputcsv <filename>" to the end of your search syntax.

For example,

ip=10.1.1.* | outputcsv myresults.csv

Here is the docs for this...

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputcsv

I find this quite good in automating the output of this data.

Regards,

MHibbin

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...