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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...