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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...