Skip to main content

Recently Updated Pages

Fluent-Bit Synchronization Database

Logging Management with Grafana

Settings [INPUT] Name tail Path /var/external_logs/*.log Ta...

Updated 4 months ago by Ahmad

File and Folder

Linux Commands

Show file contents from tail with specific line number limit: tail -n 200 <file> Show file conte...

Updated 4 months ago by Ahmad

Sample of Pod's Log

Logging Management with Grafana

1. loki-minio-0 MinIO Object Storage Server Copyright: 2015-2022 MinIO, Inc. License: GNU AGPLv3 ...

Updated 4 months ago by Ahmad

Configuration

AWS SDK

Configure Credentials: aws configure List of Configured Credentials: aws configure list

Updated 4 months ago by Ahmad

Debugging

AWS Lambda

Cannot find package 'uuid' imported from /var/task/index.mjs If your Lambda Layer contains @types...

Updated 4 months ago by Ahmad

Export Layer

AWS Lambda

1. Get the Layer ARN Ensure you have the full ARN of the Lambda Layer. It typically looks like: a...

Updated 4 months ago by Ahmad

Logging Data Backup Simulation with Docker

Logging Management with Grafana

1. Prerequisites Install Docker and Docker Compose: Install Docker Install Docker Compose 2....

Updated 4 months ago by Ahmad

MinIO as Storage

Logging Management with Grafana

1. What is MinIO? MinIO is a high-performance, distributed object storage system that is compati...

Updated 4 months ago by Ahmad

Logging Storage

Logging Management with Grafana

1. Loki Storage Backend Loki stores logs in a backend system that is configured when Loki is depl...

Updated 4 months ago by Ahmad

Running Services

Logging Management with Grafana

Kubernetes What It Does: Kubernetes manages the deployment, scaling, and operation of containe...

Updated 4 months ago by Ahmad

Table Indexing

PostgreSQL Tips

1. What is Indexing? An index is a data structure that allows the database to find and retrieve s...

Updated 4 months ago by Ahmad

Bash Script to Delete Log Files Inside Pods Based on Retention Days with Different Target Folders

Managing Pods

#!/bin/bash # Retention days for log files (delete files older than this many days) RETENTION_DA...

Updated 4 months ago by Ahmad

Build and Run a Container

Docker Commands

Build the Docker image docker build -t <image-name> . Run the container: docker run -d --name <c...

Updated 4 months ago by Ahmad

Cannot Log in to an Instance via SSH

Error Debugging

Eventhough port for SSH, port 22, has opened, the connection to the instance is still failed. One...

Updated 4 months ago by Ahmad

Bash Script to Delete Log Files Inside Pods Based on Retention Days

Managing Pods

#!/bin/bash # Retention days for log files (delete files older than this many days) RETENTION_DA...

Updated 4 months ago by Ahmad

Managing CronJobs List

Managing Pods

List all CronJobs in the current namespace: kubectl get cronjobs This will display a list of a...

Updated 4 months ago by Ahmad

Add a New CronJob

Managing Pods

Option 1: Create a CronJob Using a YAML Manifest 1. Create a new cronjob.yaml file: apiVersion: b...

Updated 4 months ago by Ahmad

CronJobs

Linux Commands

Command Format # Example of job definition: # .---------------- minute (0 - 59) # | .-----------...

Updated 4 months ago by Ahmad

Database Structure

Creating Database Importer with NodeJS ...

This database helps AWS Lambda to index importing tasks. Tables Date Indexing Table CREATE TABLE ...

Updated 4 months ago by Ahmad

Activating SSL for BookStack Application

Running BookStack in aaPanel Using Docker

Add New Site This following code is the original nginx setup. server { listen 80; server_...

Updated 4 months ago by Ahmad