본문 바로가기

Tech/ELK

(4)
[Elastic Search, Logstash, Kafka] Log4J 취약점 조치 후기 본 내용은 Log4J 취약점이 발견되었을 당시, Elastic Search, Logstash, Kafka 조치를 하며 정리한 내용이다. 취약한 버전 Apache Log4j 2.x
[Elastic Search] wsl에서 esdump시, no space left on device 에러 해결 WSL Virtual Disk 확장으로 해결했다. esdump를 사용하여, elastic search 인덱스 백업 중 No space left on device에러가 발생했다. 무슨 에러인지 검색해보니, 저장공간이 부족해서 발생하는 에러라고 한다. wsl의 가상디스크 공간이 별개로 설정된다는 것을 인지하지 못한채, 큰 크기의 인덱스를 백업하려 했기 때문에 발생한 에러였다... 내가 작업했던 환경은 WSL2 Ubuntu를 사용하는 상태였다. 실제로 약 350GB의 인덱스를 백업하는 도중에 에러가 발생했고, df -h 로 wsl의 디스크 공간을 확인 해보니, 251GB만큼 할당되어있었다. 큰 크기의 인덱스를 백업하기 위해서, WSL에 할당된 디스크 공간을 확장 시킬 방법이 필요했다. WSL 디스크 공간 확장..
[filebeat] 설정 파일 참고 [참고] https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html Log input | Filebeat Reference [7.15] | Elastic During testing, you might notice that the registry contains state entries that should be removed based on the clean_inactive setting. This happens because Filebeat doesn’t remove the entries until it opens the registry again to read a different file. If www.elastic...
[Elastic Search] esdump 활용 따로 커스텀해서 사용중인 esdump 관련 코드 일부를 업로드 [참고] https://github.com/elasticsearch-dump/elasticsearch-dump GitHub - elasticsearch-dump/elasticsearch-dump: Import and export tools for elasticsearch Import and export tools for elasticsearch. Contribute to elasticsearch-dump/elasticsearch-dump development by creating an account on GitHub. github.com 상수 값들 예시 { "ELASTIC_URL": "http://:@:", "INDEX": "", "OUTPU..