Setup Atatus Infra agent as Elastic Beanstack Extension (x86_64 architecture)
Create a folder named .ebextensions inside your application directory.
Inside the .ebextensions folder, create a file named atatus.config and populate it with the following contents.
files:
"/etc/atatus-infra-agent/atatus-eb.yml" :
mode: "000644"
owner: root
group: root
content: |
license_key: "lic_infra_key***************"
log_level: info
tags: []
logs_enabled: true
"/etc/atatus-infra-agent/conf.d/files.d/files.yml" :
mode: "000644"
owner: root
group: root
content: |
logs:
- type: file
paths:
- /var/log/web.stdout.log
service: app_service
source: app_source
processing_rules:
- type: 'multiline'
pattern: '^[[:space:]]'
negate: false
group: 'after'
commands:
"01-agent-repository":
command: sudo curl -o /etc/yum.repos.d/atatus-infra-agent.repo https://s3.amazonaws.com/atatus-artifacts/atatus-infra/rpm/x86_64/atatus-infra-agent.repo
"02-update-yum-cache":
command: sudo yum -q makecache -y --disablerepo='*' --enablerepo='atatus-infra-agent'
"03-run-installation-script":
command: sudo yum install atatus-infra-agent -y
"04-update-agent-config":
command: sudo mv /etc/atatus-infra-agent/atatus-eb.yml /etc/atatus-infra-agent/atatus.yml
"05-restart-agent":
command: sudo service atatus-infra-agent restart
In the configuration above, you need to make the following changes:
a) license_key - Please replace the test license key with your account's infra license key.
b) paths - If your log files are located in different directories, update the log file paths accordingly.
Setup Atatus Infra agent as Elastic Beanstack Extension (arm64 architecture)
Create a folder named .ebextensions inside your application directory.
Inside the .ebextensions folder, create a file named atatus.config and populate it with the following contents.
files:
"/etc/atatus-infra-agent/atatus-eb.yml" :
mode: "000644"
owner: root
group: root
content: |
license_key: "lic_infra_key***************"
log_level: info
tags: []
logs_enabled: true
"/etc/atatus-infra-agent/conf.d/files.d/files.yml" :
mode: "000644"
owner: root
group: root
content: |
logs:
- type: file
paths:
- /var/log/web.stdout.log
service: app_service
source: app_source
processing_rules:
- type: 'multiline'
pattern: '^[[:space:]]'
negate: false
group: 'after'
commands:
"01-download-agent":
command: sudo curl -O -L https://s3.amazonaws.com/atatus-artifacts/atatus-infra/downloads/atatus-infra-agent-3.2.0-linux-arm64.tar.gz
"02-unzip-agent":
command: sudo tar -xvzf atatus-infra-agent-3.2.0-linux-arm64.tar.gz
"03-install-agent":
command: sudo ATATUS_LICENSE_KEY="lic_infra_key***************" bash atatus-infra-agent-3.2.0-linux-arm64/install.sh install
"04-update-agent-config":
command: sudo mv /etc/atatus-infra-agent/atatus-eb.yml /etc/atatus-infra-agent/atatus.yml
"05-restart-agent":
command: sudo service atatus-infra-agent restart
In the configuration above, you need to make the following changes:
a) license_key - Please replace the test license key with your account's infra license key.
b) paths - If your log files are located in different directories, update the log file paths accordingly.