Sunday, October 1, 2023

apt-key warning when sudo apt update run



Issue: apt-key warning when sudo apt update run

Update below file:
cat /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list
sudo apt-key list
apt-key export 0EBFCD88 | sudo gpg --dearmour -o /usr/share/keyrings/docker.gpg
#edit file
sudo vim /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list

#from
deb https://download.docker.com/linux/ubuntu focal stable

#to
deb [arch=amd64 signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu focal stable

This should resolve issue.

Friday, September 1, 2023

Elasticsearch Index Red / Yellow



Issue: Elasticsearch Index Red / Yellow

Connect to Stack management in kibana:
Kibana -> DevTools
# Get cluster health
GET _cluster/health

# Get Index helath - Look for the red/yellow index
GET /_cat/indices

# Update number_of_replicas to 0.
PUT /.ds-logs-apm.error-default-2023.10.06-000002/_settings
{
  "number_of_replicas": 0
}

#This will change for all index with this patent
PUT /.ds-traces-apm-default-2023*/_settings
{
  "number_of_replicas": 0
}

This should resolve issue.

apt-key warning when sudo apt update run

Issue: apt-key warning when sudo apt update run Update below file: cat /etc/apt/sources.list.d/download_docker_com_linux_ubuntu.list ...