Elasticsearch Cheat Sheet (pfELK)

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Indices anzeigen

Alle Data Streams anzeigen

Letzte Dokumente aus Suricata

  • curl -u elastic:123Start$ -k \

"https://localhost:9200/.ds-logs-pfelk-suricata-*/_search?pretty" \ -H 'Content-Type: application/json' -d '{

 "size": 5,
 "sort": [ { "@timestamp": "desc" } ],
 "_source": ["@timestamp","suricata.eve.alert.signature","source.ip","destination.ip","event.type"]

}'

Letzte Dokumente (egal welcher Namespace)

  "size": 5,
  "sort": [ { "@timestamp": "desc" } ],
  "_source": ["@timestamp","log.syslog.appname","data_stream.namespace","message"]
}'

Suche nach Keyword (z. B. suricata)

Index löschen (Beispiel suricata von heute)

Index-Template (Übersicht)

Cluster-Health