Refine your search:

What's the easiest way to export Splunk search results to a CSV file that I can open in Excel?

asked 25 Mar '10, 20:10

Justin%20Grant's gravatar image

Justin Grant
1.5k6740
accept rate: 50%

edited 12 Jan '11, 04:45

nick's gravatar image

nick ♦
14.2k1318


3 Answers:

If there are fewer than 10,000 lines to export, then "Actions>Export Results..." from the Search or Charting views, after a search has finished running. The menu item is not available on most other dashboards or views.

I think that the "Action" menu is nearly invisible, so lots of people miss it.

link

answered 25 Mar '10, 20:52

gkanapathy's gravatar image

gkanapathy ♦
26.5k1622
accept rate: 42%

Both of these are good answers, but this one matches more closely what I was trying to do. thanks!

(26 Mar '10, 21:02) Justin Grant

+1 for 'I think that the "Action" menu is nearly invisible, so lots of people miss it.'!

(10 Apr, 17:39) pkaeding

Alternatively, try the outputcsv command like this:

splunk > my super cool search | outputcsv mycsvfilename

link

answered 25 Mar '10, 21:29

hulahoop's gravatar image

hulahoop ♦
2.5k3240
accept rate: 40%

link

answered 21 Apr '10, 15:07

Dan's gravatar image

Dan ♦
7842317
accept rate: 33%

What version of Splunk are you running?

(05 Apr '10, 18:12) gkanapathy ♦

We are on 4.0.9 for now, but will be going to 4.1 shortly. i saw that page you suggested, but have since found that there is a limit of 50,000 lines on the outputscsv. We need to push it to 200-300K lines. thx!

(08 Apr '10, 12:39) dhaffner

That is strange, I have used outputcsv to generate files over 1 millon results.

(08 Apr '10, 15:50) gkanapathy ♦

On 4.0.x, that is.

(08 Apr '10, 15:50) gkanapathy ♦
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1,090
×96
×71
×22

Asked: 25 Mar '10, 20:10

Seen: 4,717 times

Last updated: 10 Apr, 17:39

Copyright © 2005-2012 Splunk, Inc. All rights reserved.