Hi, what is the best way to repopulate a csv with data from a search using curl but without using a username and password as I want to cron the search? Thanks
You can write a saved search in Splunk and schedule it. Use outputcsv command to write results to a csv file and this csv file will be created in $SPLUNK_HOME/var/run/splunk/csv.
<you search> | outputcsv create_empty=false MyTestCsvFile.csv
Note that for clustered search heads csv file is created where saved is ran and is not replicated to other search heads.
You can write a saved search in Splunk and schedule it. Use outputcsv command to write results to a csv file and this csv file will be created in $SPLUNK_HOME/var/run/splunk/csv.
<you search> | outputcsv create_empty=false MyTestCsvFile.csv
Note that for clustered search heads csv file is created where saved is ran and is not replicated to other search heads.
manjunathmeti Thanks