Amazon ECS Infra Agent - Setup & Installation Docs | Middleware
mw-agent
sidecar, mentioned above, must be running before proceeeding.
Step 1: Add a Fluent sidecar in your ECS task
Step 2: Add a log Configuration in your main container
Step 3 [Optional]: Parsing JSON Structured Logs
Message
of the log being displayed while the attributes will be viewable on expansion.To change the behavior you will need to add the below options to the firelensConfiguration
created in Step 1.Message
field. Otherwise Middleware will not know what should be shown as a body of the log.Step 1: Create & Configure a Infra Agent ECS Task Definition
Step 2: Register your Task Definition File
AWS CLI
AWS Web UI
Step 3: Schedule the Infra Agent as a Daemon Service
stdout
and stderr
log stream and receive traces from your application and send to your Middleware account.
JSON
environment
variable in the Task DefinitionlogConfiguration
variable to enable the fluentd
logging driverAWS Management Console
Environment Variables
section, select Add environment variable
b. Add MW_AGENT_SERVICE
environment variable and set the value to 172.17.0.1
Use logging collection
c. Add Parameters as seen below
Missing Integrations Menu