전제 : pg와 elasticsearch는 설치가 되어있다.
설치
설치는 뭐... https://www.elastic.co/kr/support/matrix#matrix_compatibility 여기 잘 나와있다.
중요한 것은 버전이니까.
Elastic Support Matrix | Elasticsearch
The tables below display platform and software configurations that are eligible for support under our subscription offerings. Learn more about our Support Policy and product End of Life policy. Don't see your favorite platform, JVM, or browser? Contact us
www.elastic.co
설정
서버 | 서버 |
should be installed plugin |
/usr/share/logstash 경로 이하 |
conf | input filter output 을 간단히 실행한 예제는 본 블로그에 많음... |
jvm.options |
vi /etc/logstash/jvm.options : -Xms12g -Xmx12g로 변경 |
startup.options | vi /etc/logstash/startup.options : 설정 확인 실행되는 자바 버전. 자바 경로 확인. 문제가 있을때... |
pipelines.yml |
디폴트 파일 /etc/logstash/pipelines.yml을 /etc/logstash/pipelines-default.yml로 변경하여 백업해두었다.
/etc/logstash/pipelines.yml에 conf 파일 지정 |
current log 확인 |
sytstemctl status logstash.service -l 해두 되구 |
|
|
ExecStart 옵션 | vi /etc/systemd/system/logstash.service
이 파일에서 해당 옵션을 수정하면 |
conf file temp directory |
vi /home/사용자/*.conf default conf 는 ExecStart 옵션을 수정하여 사용하고, 테스트 시에는 /usr/share/logstash 경로 에서 직접 temp conf 파일과 데이터 폴더 옵션 주어 사용. command로 그때그때 실행할 때. 이런 편한 옵션도. 있다. |
nohup bin/logstash -f ./current-logstash-backup.conf --path.data ./data2 > /root/nohup.log 2>&1 &
으로도 실행
'내가 당면한 문제와 해결방안' 카테고리의 다른 글
useEffect vs useLayoutEffect (0) | 2021.01.29 |
---|---|
pathparam vs queryparam (0) | 2020.11.25 |
pg_dump, pg_restore huge size (0) | 2020.07.24 |
centos ls -al date format 보기편하게 (0) | 2020.07.24 |
logstash conf :sql_last_value (0) | 2020.07.14 |