Le-DOC
January 23, 2018, 3:22pm
1
Hi, my data disk was corrupt, and I need to restore index with elasticsearch.
Data are restored, and I see them on graylog, but I can’t see newer logs. Nothing is written.
No error on logs.
I tryed recalculate index range but still nothing.
Im on graylog 2.3 with ES 2.3
jochen
(Jochen)
January 23, 2018, 3:24pm
2
What was the reason for the corruption?
What did you do to restore data and which data specifically?
What’s in the logs of your Graylog and Elasticsearch nodes?
Le-DOC
January 23, 2018, 3:29pm
3
Corruption was from the disk (ext2…)
i move my datas on xfs volume with same mount point.
my restore script is:
curl -s -XPOST “http://localhost:9200/_snapshot/quotidien/quotidien/_restore ” -d “{“indices”: “graylog2_17”, “ignore_unavailable”: true, “include_global_state”: false}”
Graylog node have nothing special, and ES log have only restore logs GREEN to RED, and RED to GREEN
jochen
(Jochen)
January 23, 2018, 3:31pm
4
Was the Graylog journal directory on the same disk?
How do you know?
What’s the status of the Graylog Deflector index alias in Elasticsearch?
Le-DOC
January 23, 2018, 3:33pm
5
What do you means about graylog journal directory ? log ?
the deflector indexes are online, I just create a new ont to be sure, and 0 message.
jochen
(Jochen)
January 23, 2018, 3:34pm
6
# The directory which will be used to store the message journal. The directory must me exclusively used by Graylog and
# must not contain any other files than the ones created by Graylog itself.
#
# ATTENTION:
# If you create a seperate partition for the journal files and use a file system creating directories like 'lost+found'
# in the root directory, you need to create a sub directory for your journal.
# Otherwise Graylog will log an error message that the journal is corrupt and Graylog will not start.
message_journal_dir = data/journal
What did you do exactly?
How exactly did you check the status of the deflector alias? And is it an index or an index alias?
Le-DOC
January 23, 2018, 3:37pm
7
message_journal is on other dir: /var/lib/graylog-server/journal
for deflector, i checked on head. graylog2_deflector is an alias of graylog2_18
jochen
(Jochen)
January 23, 2018, 3:54pm
8
Try removing all files in /var/lib/graylog-server/journal/
while Graylog is stopped and start it afterwards.
Disclaimer: This will delete all log messages which are in the journal and haven’t been written to Elasticsearch yet.
Le-DOC
January 23, 2018, 3:57pm
9
Wonderful, it work !
Thanks for quick answer !
system
(system)
Closed
February 6, 2018, 3:57pm
10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.