logstash啟動報錯

2021-10-01 03:30:59 字數 2845 閱讀 5015

1.報錯資訊

thread.exclusive is deprecated, use thread::mutex

warning: could not find logstash.yml which is typically located in $ls_home/config or /etc/logstash. you can specify the path using --path.settings. continuing using the defaults

could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. using default config which logs errors to the console

[warn ] 2019-11-29 00:03:36.506 [logstash::runner] multilocal - ignoring the 『pipelines.yml』 file because modules or command line options are specified

2.分析:

檢視/var/log/message 有logstash報錯資訊,

less /var/log/message

nov 28 23:40:25 localhost logstash: warning: could not find logstash.yml which is typically located in lsh

ome/

conf

igor

/etc

/log

stas

h.yo

ucan

spec

ifyt

hepa

thus

ing−

−pat

h.se

ttin

gs.c

onti

nuin

gusi

ngth

edef

ault

snov

2823:40

:25lo

calh

ostl

ogst

ash:

coul

dnot

find

log4

j2co

nfig

urat

iona

tpat

h/us

r/sh

are/

logs

tash

/con

fig/

log4

j2.pr

oper

ties

.usi

ngde

faul

tcon

figw

hich

logs

erro

rsto

thec

onso

le顯示

預設lo

gsta

sh會從

ls_home/config or /etc/logstash. you can specify the path using --path.settings. continuing using the defa ults nov 28 23:40:25 localhost logstash: could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. using default config which logs errors to the console 顯示預設logstash會從

lsh​om

e/co

nfig

or/e

tc/l

ogst

ash.

youc

ansp

ecif

ythe

path

usin

g−−p

ath.

sett

ings

.con

tinu

ingu

sing

thed

efau

ltsn

ov28

23:4

0:25

loca

lhos

tlog

stas

h:co

uldn

otfi

ndlo

g4j2

conf

igur

atio

natp

ath/

usr/

shar

e/lo

gsta

sh/c

onfi

g/lo

g4j2

.pro

pert

ies.

usin

gdef

ault

conf

igwh

ichl

ogse

rror

stot

heco

nsol

e顯示默

認log

stas

h會從ls_home/config載入配置檔案,檢視/etc/logstash/startup.options可以知道$ls_home的值為/usr/share/logstash/,該目錄為logstash的prefix目錄

3.解決辦法:

ln -s /etc/logstash /usr/share/logstash/config

ELK安裝 Logstash部署報錯及解決方式

啟動logstash服務後 使用命令ps,檢視程序 使用netstat ntpl命令檢視埠 問題1 啟動服務後,有程序但是沒有埠 解決方法 1 首先檢視日誌內容 root elk 2 cat var log logstash logstash plain.log grep que 2 通過日誌確定是...

tomcat 啟動報錯

tomcat 啟動日誌報出以下錯誤 error transport error 202 bind failed address already in use transport.c l41 error jdwp transport dt socket failed to initialize,tra...

nfs啟動報錯

root localhost service nfs start starting nfs services ok starting nfs mountd failed starting nfs daemon rpc.nfsd writing fd to kernel failed errno 11...