Linux(Ubuntu/CentOS)安装splunkforwarder步骤

Linux(Ubuntu/CentOS)安装splunkforwarder步骤:

splunkforwarder是splunk的客户端log转发工具:

下载网址(下载tar包):
https://www.splunk.com/en_us/download/universal-forwarder.html

splunk服务器端要开启接收端口(设置——转发和接收——配置接收——新增——9997)

客户端:

安装:

tar zxfv splunkforwarder-7.3.0-657388c7a488-Linux-x86_64.tgz -C /opt/

启动splunkforwarder:

/opt/splunkforwarder/bin/splunk enable boot-start

回车,100%后输入y
帐号名:splunk (启动时需要有个管理帐号)
密码:xxxxx

service splunk start

/opt/splunkforwarder/bin/splunk set deploy-poll ip:8089

输入上面设置的帐号密码

/opt/splunkforwarder/bin/splunk add forward-server ip:9997 (ip为splunk服务器端ip)

查看接收服务器:

/opt/splunkforwarder/bin/splunk list forward-server

添加收集项:

/opt/splunkforwarder/bin/splunk add monitor /var/log/mysql/error.log

/opt/splunkforwarder/bin/splunk add monitor /var/log/httpd/error_log

也可以直接修改下面文件:
/opt/splunkforwarder/etc/apps/search/local/inputs.conf

重启服务:

service splunk restart

到splunk服务器端——设置——转发器管理——能看到客户端已连接

原文地址:https://blog.51cto.com/yangzhiming/2405821

时间: 2024-08-29 00:11:14

Linux(Ubuntu/CentOS)安装splunkforwarder步骤的相关文章

[Linux] ubuntu 软件安装必须看的网址

http://wiki.ubuntu.org.cn/index.php?title=Qref/Apps&variant=zh-hans 这里介绍了unbuntu常用软件及其安装,免得你百度来百度去的,哈哈,很汉我也发现不久.强力推荐!!! 另一个ubuntu参考手册 http://www.phpx.com/man/Ubuntu/UbuntuManual.htm [Linux] ubuntu 软件安装必须看的网址

linux 下centos 安装redis

linux 下centos 安装 redis centos 版本: redis 版本:redis-4.0.11.tar.gz 在线安装:wget 命令. centos 如缺少命令.使用 yum install wget 安装目录:/usr/local/redis 下 cd /usr/local/ 获取redis包 wget http://download.redis.io/releases/redis-4.0.11.tar.gz 解压  至redis 目录 tar xzf redis-4.0.1

linux下centos安装android sdk最新全面教程【可行】

1.此教程解决了当你配置完android sdk的环境变量以后,可能在命令中打入adb还是提示错误.现在给大家提供最新解决方法,此方法同时可以解决最新的centos 6.5版本 2.本教程支持最新java8,并与此为例. 工具/原料 java8下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 注:ubuntu选tar.gz后缀:centos选rmp后缀 android sdk(内包括eclipse)下载

linux -- Ubuntu下安装和配置Apache2

在Ubuntu中安装apache 安装指令:sudo apt-get install apache2 启动和停止apache的文件是:/etc/init.d/apache2 启动命令:sudo apache2ctl -k start (或 server apache2 start) 停止命令:sudo apache2ctl -k stop (或 server apache2 stop) 重新启动:sudo apache2ctl -k restart  (或 server apache2 rest

linux环境下安装nginx步骤

开始前,请确认gcc g++开发类库是否装好,默认已经安装. ububtu平台编译环境可以使用以下指令 apt-get install build-essential apt-get install libtool centos平台编译环境使用如下指令 安装make: yum -y install gcc automake autoconf libtool make 安装g++: yum install gcc gcc-c++ 下面正式开始: 一.选定安装文件目录 可以选择任何目录,本文选择  

linux环境下安装nginx步骤(不错)

开始前,请确认gcc g++开发类库是否装好,默认已经安装. ububtu平台编译环境可以使用以下指令 apt-get install build-essential apt-get install libtool centos平台编译环境使用如下指令 安装make: yum -y install gcc automake autoconf libtool make 安装g++: yum install gcc gcc-c++ 下面正式开始: 一.选定安装文件目录 可以选择任何目录,本文选择  

Linux Ubuntu下安装OpenCv2.4.10

参考 http://blog.sina.com.cn/s/blog_53b0956801010lfu.html 捣鼓了一个晚上了,OpenCv还没装好,本来以为看个类似的比如Ubuntu安装OpenCv2.2或者其他的就能安装好,结果发现...我太天真了. 网上使用Ubuntu12.04来装OpenCv还是挺多的,各种版本组合教程,都没能把我的Ubuntu12.04+OpenCv2.4.10 成功合体. 灰心之极到OpenCv官网想下载个OpenCv2.4.0发现没有.... 只好假装屡败屡战了

【Linux】CentOS安装Chrome浏览器

在CentOS 6.x 安装Chrome 浏览器的方法.首先在/etc/yum.repos.d目录中创建google-chrome.repo文件,其写入如下内容: [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch enabled=1 gpgcheck=1 gpgkey=https://dl-ssl.google.com/linux/linux_sign

linux问题-Centos 安装Sublime text 3

Centos大多数情况下是用来做服务器的,但是由于各种原因我现在要用Centos做开发机,所以当然要安装开发神奇Sublime textle. 注意:安装目录因人而异,我的安装目录是/opt/sublime_text_3. 一.建立软件安装目录(我一般把软件安装在opt目录下) # mkdir /opt # cd /opt 二.下载软件 http://www.sublimetext.com/3注意一定要下Ubuntu/tarball包.也可以用命令下载 wget http://c758482.r