重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
cp /etc/logstash/conf.d/*.conf /bak
service stop logstash
dpkg -P logstash
rm /usr/share/logstash
rm /etc/logstash
rm /var/lib/logstash
rm /var/log/logstash
wget https://artifacts.elastic.co/downloads/logstash/logstash-5.3.1.zip
unzip logstash-5.3.1.zip -d /data/software/
ln -sv logstash-5.3.1 logstash
cd logstash
vim config/logstash.yml
pipeline.workers: 8
pipeline.output.workers: 8
pipeline.batch.size: 10000
pipeline.batch.delay: 10
vim config/jvm.options
-Xms2g
-Xmx2g
mkdir conf.d
touch conf.d/index.conf # 业务配置文件
mkdir data/data{1,2,3,4,5}
mkdir logs/log{1,2,3,4,5}
useradd elk
chown -R elk.elk data/
chown -R elk.elk logs/
pip install supervisor
mkdir /etc/supervisor
cat >> supervisord.conf <
cd /etc/supervisor
mkdir conf.d/
mkdir /var/log/supervisor
mkdir /data/logs/supervisord/
cd conf.d/
cat >> logstash2.conf <
supervisord -c /etc/supervisor/supervisord.conf
supervisorctl -c /etc/supervisor/supervisord.conf
supervisor 更改配置文件,必须要重启整个supervisor进场才能生效
supervisorctl -c /etc/supervisor/supervisord.conf shutdown
supervisord -c /etc/supervisor/supervisord.conf
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。