Documentation:
3.2
You can use the export command to selectively copy or archive events from Splunk's indexes. The export command does not remove any data -- it just makes a copy. Since the export command runs on active index files, you must first stop Splunk.
via the CLITo use Splunk's CLI, navigate to the $SPLUNK_HOME/bin/ directory and use the ./splunk command. You can also add Splunk to your path and use the splunk command.
The command is:
# splunk export eventdata main -dir /copydir [optional search expression]
{export-dir}/{path to splunk install}/var/spool/splunk/{source name...}.
/copydir/opt/splunk31/splunk/var/spool/splunk/sourcefile.log
$SPLUNK_HOME/bin/splunk export eventdata main -dir /copydir host::twinkie
To use Splunk Web, run your search and select Export from the search menu

Select the format of the results (txt or CSV) and and the number of events that should be exported.

Comments
In our current configuration, the Export Search As menu is disabled and I don't get an option to export as csv or text. Is there a changed in configuration that is required to enable the menu??
Posted by alok on Jul 09 2008, 9:54am