Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.33k stars 1.06k forks source link

Search page does not display log data ,the page indicates "Elasticsearch exception [type=index_not_found_exception, reason=no such index []]." #20364

Open mmweiyin opened 2 weeks ago

mmweiyin commented 2 weeks ago

The System/Inputs has been configured with Syslog UDP and has received data. Upon clicking "Show received messages," when I navigate to the search menu, detailed log data is not displayed. The page indicates: "While retrieving data for this widget, the following error(s) occurred: Elasticsearch exception [type=index_not_found_exception, reason=no such index []]."

I have reviewed a similar issue at https://github.com/Graylog2/graylog2-server/issues/9588. I have reinstalled MongoDB, but the same error persists. I have also restarted Graylog and Elasticsearch, yet the problem still exists.

Expected Behavior

Display log data.

Current Behavior

NO log data. 20240905150920

the status of elasticsearch is green,No errors inside Graylog Server logfiles or Elastic logs. { "cluster_name" : "elasticsearch", "status" : "green", "timed_out" : false, "number_of_nodes" : 1, "number_of_data_nodes" : 1, "active_primary_shards" : 9, "active_shards" : 9, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0, "task_max_waiting_in_queue_millis" : 0, "active_shards_percent_as_number" : 100.0 }

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

sethgraylog commented 1 week ago

Are you able to upgrade to the latest version of Graylog? It would also be preferred to use OpenSearch since Elastic has deprecated this version.