본문 바로가기

728x90

리눅스

[리눅스] Ubuntu 환경에서 Metricbeat 설치하는 방법 Ubuntu 환경에서 Metricbeat 설치하는 방법 Metricbeat 설치하기 로컬 저장소 업데이트 sudo apt-get update Metricbeat 패키지 설치 sudo apt-get install -y metricbeat 구성 파일(metricbeat.yml) 편집 vim /etc/metricbeat/metricbeat.yml Metricbeat 서비스 시작 systemctl --now enable metricbeat.service Metricbeat 서비스 상태 확인 systemctl status metricbeat.service 메트릭 수집 모듈 활성화 및 구성 metricbeat modules list $ metricbeat modules list Enabled: system Disa.. 더보기
[리눅스] Ubuntu 환경에서 Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) Ubuntu 환경에서 Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) apt 저장소 업데이트 sudo apt-get update apt-transport-https 패키지 설치 sudo apt-get install -y apt-transport-https Elasticsearch 공식 GPG 키 추가 wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpg Elasticsearch 저장소 추가 echo "deb [signed-by=/usr/share/keyrings/elasticsearch.. 더보기
PHP의 설정 파일인 php.ini 파일의 위치를 찾는 방법 PHP의 설정 파일인 php.ini 파일의 위치를 찾는 방법 1. 명령줄을 사용하여 찾기 php -i | grep "Configuration File" $ php -i | grep "Configuration File" Configuration File (php.ini) Path: /etc/php.ini 또는 php --ini | grep php.ini $ php --ini | grep php.ini Configuration File (php.ini) Path: /usr/local/apache2/conf Loaded Configuration File: /usr/local/apache2/conf/php.ini 2. phpinfo() 함수를 사용하여 찾기 PHP 스크립트를 작성하고 phpinfo() 함수를 호.. 더보기
[리눅스] Fleet Server 호스트 추가 Fleet Server 호스트 추가 다이어그램(diagram) Elasticsearch에서 보안 및 API 키 인증 기능을 활성화 elasticsearch 구성 파일 편집 xpack.security.authc.api_key.enabled: true 추가 vim /etc/elasticsearch/elasticsearch.yml ... # Enable security features xpack.security.enabled: true xpack.security.enrollment.enabled: true xpack.security.authc.api_key.enabled: true # Enable encryption for HTTP API client connections, such as Kibana, Log.. 더보기
[리눅스] Metricbeat 설치하는 방법 Metricbeat 설치하는 방법 Metricbeat 패키지 설치 yum install --enablerepo=elasticsearch -y metricbeat Metricbeat(metricbeat.yml) 설정 확인 cat /etc/metricbeat/metricbeat.yml | egrep -v '^$|^#|#' $ cat /etc/metricbeat/metricbeat.yml | egrep -v '^$|^#|#' metricbeat.config.modules: path: ${path.config}/modules.d/*.yml reload.enabled: false setup.template.settings: index.number_of_shards: 1 index.codec: best_compre.. 더보기
[리눅스] Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) 테스트 환경 $ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/" Elasticsearch 설치 Elasticsearch 다운로드 페이지 https://www.elastic.co/downloads/elasticsearch https://www.elastic.c.. 더보기
[리눅스] Elastic Stack 설치 Elastic Stack 설치 설치 순서 다음 순서대로 사용하려는 Elastic Stack 제품을 설치하세요. Elasticsearch(설치 지침) Kibana(설치) Logstash(설치) Beats(설치 지침) APM(설치 지침) Elasticsearch Hadoop(설치 지침) Logstash 설치 Logstash 패키지 설치 yum install --enablerepo=elasticsearch -y logstash 참고URL - Elasticsearch와 Kibana를 설치하고 연동하는 방법(single node) : https://scbyun.com/1571 - installing the elastic stack : https://www.elastic.co/guide/en/elastic-stac.. 더보기
Nginx에서 X-Forwarded-For(XFF) 설정하는 방법 Nginx에서 X-Forwarded-For(XFF) 설정하는 방법 Nginx에서 X-Forwarded-For (XFF) 헤더를 설정하는 것은 주로 프록시 서버나 로드 밸런서와 같은 중간 서버를 통해 클라이언트의 IP 주소를 추적하려는 경우에 사용됩니다. XFF 헤더는 클라이언트의 실제 IP 주소를 서버로 전달하기 위해 사용됩니다. X-Forwarded-For 헤더를 사용하여 클라이언트의 실제 IP 주소를 확인할 수 있다. Nginx 설정 파일 편집 set_real_ip_from ; real_ip_header X-Forwarded-For; sudo vim /etc/nginx/nginx.conf http { ... set_real_ip_from 0.0.0.0/0; real_ip_header X-Forward.. 더보기

728x90