graylog界面不显示es日志
来源:14-3 springboot集成graylog(上)

qq_聖曖格_0
2019-05-30
师兄,es按照你视频里的版本装了,版本一样:
graylog也起来了,但是一直报了一个错:
es也能访问:
也配置了Inputs:
但是日志界面出不来:
请问是什么原因?
3回答
-
qq_聖曖格_0
提问者
2019-05-31
感觉启动graylog,有时会报错,有时不会,一般第一次启动不会,经过一次docker-compose down后,在启动,就会报错,刚试了师兄的方法:
刚重启了eureka:
就是不显示日志:
我就很郁闷了,今天在公司里也试了一下,偶尔会成功显示,感觉是个概率事件,咋解决呢?师兄,是因为用docker安装的es原因吗?
跟error:
graylog_1 | 2019-05-30 17:37:27,456 ERROR: org.graylog2.migrations.MigrationHelpers - Invalid user 'graylog-sidecar', fixing it.
这个错误有关吗?这个貌似每次启动都会出现
es日志:
试了好多次师兄的方式,依然不显示062019-06-06 -
廖师兄
2019-05-31
2019-05-30 15:18:51,150 ERROR: org.graylog2.indexer.rotation.strategies.AbstractRotationStrategy - Could not find current deflector target of index set <Default index set>. Aborting.
建索引出了问题。
彻底删除es, docker rm
用我的docker-compose.yml
022021-05-21 -
qq_聖曖格_0
提问者
2019-05-30
配置如下:
version: '2'
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongodb:
image: mongo:3
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.6/docker.html
# elasticsearch:
version: '2'
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongodb:
image: mongo:3
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.6/docker.html
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.6/docker.html
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.1
# environment:
# - http.host=0.0.0.0
# - transport.host=localhost
# - network.host=0.0.0.0
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# ulimits:
# memlock:
# soft: -1
# hard: -1
# mem_limit: 1g
# Graylog: https://hub.docker.com/r/graylog/graylog/
graylog:
image: graylog/graylog:3.0
environment:
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper
# Password: admin
#echo -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1
- GRAYLOG_ROOT_PASSWORD_SHA2=d0454d157f2bbc87160b3e9a7e493e4a9a5bdebdb0a43db8fb1c5f6d6ea1eb61
- GRAYLOG_HTTP_EXTERNAL_URI=http://192.168.200.138:9000/
- GRAYLOG_ELASTICSEARCH_HOSTS= http://192.168.200.138:9200
- GRATLOG_ROOT_TIMEZONE=Asia/Shanghai
links:
- mongodb:mongo
# - elasticsearch
depends_on:
- mongodb
# - elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 1514:1514
# Syslog UDP
- 1514:1514/udp
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
异常信息:
2019-05-30 15:18:43,606 WARN : org.graylog2.indexer.fieldtypes.IndexFieldTypePollerPeriodical - Active write index for index set "Default index set" (5ceff43d857aba000edf5103) doesn't exist yet
2019-05-30 15:18:48,609 WARN : org.graylog2.indexer.fieldtypes.IndexFieldTypePollerPeriodical - Active write index for index set "Default index set" (5ceff43d857aba000edf5103) doesn't exist yet
2019-05-30 15:18:51,150 ERROR: org.graylog2.indexer.rotation.strategies.AbstractRotationStrategy - Could not find current deflector target of index set <Default index set>. Aborting.
org.graylog2.indexer.NoTargetIndexException: Couldn't get newest index number for indices [graylog_deflector]
at org.graylog2.indexer.MongoIndexSet.getNewestIndexNumber(MongoIndexSet.java:170) ~[graylog.jar:?]
at org.graylog2.indexer.MongoIndexSet.getNewestIndex(MongoIndexSet.java:146) ~[graylog.jar:?]
at org.graylog2.indexer.rotation.strategies.AbstractRotationStrategy.rotate(AbstractRotationStrategy.java:61) ~[graylog.jar:?]
at org.graylog2.periodical.IndexRotationThread.checkForRotation(IndexRotationThread.java:113) ~[graylog.jar:?]
at org.graylog2.periodical.IndexRotationThread.lambda$doRun$0(IndexRotationThread.java:77) ~[graylog.jar:?]
at java.lang.Iterable.forEach(Iterable.java:75) [?:1.8.0_212]
at org.graylog2.periodical.IndexRotationThread.doRun(IndexRotationThread.java:73) [graylog.jar:?]
at org.graylog2.plugin.periodical.Periodical.run(Periodical.java:77) [graylog.jar:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_212]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_212]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_212]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_212]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_212]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212]
00
SpringCloud Finchley(M2+RELEASE+SR2)微服务实战
5672 学习 · 2489 问题
相似问题