product
- Why choose Splunk
- Installation record
- price
- Splunk Enterprise Security
- Splunk Phantom (SOAR)
- Splunk ITSI (Next Generation IT Operations)
- Splunk Observability Cloud
- Splunk UBA
- Macnica CSIRT App Basic
- App for Splunk for Financial Institutions
- Splunk Analytics for Hadoop
- About Apps
- Splunk Edge Hub
- What is Splunk
service
- Dashboard/SPL Creation Pack [Implementation/Building Support]
- Version upgrade service [implementation and construction support]
- Smart Security Monitoring App [Original App/Service]
- Splunk × LANSCOPE Original App [Original App/Service]
- Security Monitoring App for Box [Original App/Service]
- Cloud Security Monitoring App [Original App/Service]
- List of services
- Macnica Premium Support for Splunk (utilization support, version upgrade monitoring)
- Macnica Premium Support for Splunk Skill Up Package
Specifications/Technical Information
Application for evaluation machine
- FAQ
How to use the outputcsv command
- release date
- 2015-06-01
- last updated
- 2025-04-16
- version
- Splunk Enterprise 9.4.0
- Overview
- How to use the outputcsv command
- Reference information
- content
-
Search result output
In Splunk, the results of searches performed on SplunkWeb can be output in CSV format to $SPLUNK_HOME/var/run/splunk/csv on the Splunk server.
* Path information of $SPLUNK_HOME (for default installation)
Linux OS: /opt/splunk
Windows OS: C:\Program Files\Splunkoutput method
Use the outputcsv command to output search results.
Using the outputcsv command, it is possible to save raw data and statistical information obtained from splunk search results in CSV format on the server.
how to use
| outputcsv <保存するファイル名>.csv
Example of use
index=_internal | head 10 | table host,source | outputcsv test.csv
Executing the above command will output a file called test.csv.
*The outputcsv command is designated as a high-risk command, so a warning is output when it is executed. When a warning is output, you can select the next action from "Cancel," "Execute," or "Investigate," and if you select "Execute," the command will be executed as is. For more information, please refer to the official Splunk documentation below.
https://docs.splunk.com/Documentation/Splunk/9.4.0/Security/SPLsafeguards
How to check output results on SplunkWeb
The CSV file output by the above procedure can be viewed by using the inputcsv command on SplunkWeb.
- Example of using the inputcsv command
Command example
| inputcsv test.csv
By executing the above command, it is possible to display the contents of the test.csv file on the screen.
that's all
In charge of Macnica Splunk Co., Ltd.
- TEL:045-476-2010
- E-mail:splunk-sales@macnica.co.jp
Weekdays: 9:00-17:00