一、下载安装包
可以从国内网站进入:http://10data.com/splunk/
下载前需要注册一个splunk账号,注册后便可以提供下载,安装包名称:splunklight-6.5.1-f74036626f0c-linux-2.6-x86_64.rpm
二、安装splunk
Install Splunk Light using the RPM package
To follow these installation instructions, replace splunk_package_name.rpm with the name of the installer package you downloaded.
1.Run the rpm command.
Use the folllowing to install Splunk Light into the default directory.
rpm -i splunk_package_name.rpm
Use --prefix to select another installation directory.
rpm -i --prefix=/opt/new_directory splunk_package_name.rpm
2.Start Splunk Light.
splunk start --accept-license
3.(Optional) To boot-start Splunk Light, add the following to /etc/init.d.
./splunk start --accept-license
./splunk enable boot-start