Reporting

How to export search results - csv output to a sharepoint location

New Member

Hi, I have created a saved search and scheduled it to run weekly basis.
Any pointers on how to export the results in a csv and send it to sharepoint location.

0 Karma

SplunkTrust
SplunkTrust

You could write an alert script that connects to sharepoint and sends the results, and have that script triggered by your weekly scheduled report.

SplunkTrust
SplunkTrust

Agree with @martinmueller. Have your scheduled search run an "exportcsv" command in the end and the exported csv file will be created in $SPLUNKHOME/var/run/splunk folder. Later configure an alert executing script to either push directly to sharepoint (using some API) or copy it to sharepoint's shared location.