Datadog logs not showing
Project id - badc7624-a15a-479e-8a12-198bb0144b9f
datadog is running, traces working but logs are not visible in datadog dashboard.
DockerFile
FROM node:18
ENV DD_INSTALL_ONLY=1
ENV DD_APM_ENABLED=true
ENV NON_LOCAL_TRAFFIC=true
ENV DD_APM_NON_LOCAL_TRAFFIC=true
ENV DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true
ENV DD_LOGS_ENABLED=true
ENV DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true
ENV DD_CONTAINER_EXCLUDE_LOGS="name:datadog-agent"
ARG DD_HOSTNAME
ENV DD_HOSTNAME=$DD_HOSTNAME
ARG DD_API_KEY
ENV DD_API_KEY=$DD_API_KEY
ARG DD_SITE
ENV DD_SITE=$DD_SITE
# Download the systemctl replacement script
RUN apt-get update
RUN bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script_agent7.sh)"
WORKDIR /app
# Copy your application files to the Docker container
COPY . .
# Install your application's dependencies
RUN npm install
# Set the Docker container to run your application when it starts
CMD service datadog-agent start && npm run start
# EXPOSE 80
EXPOSE 80
3 Replies
Project ID:
badc7624-a15a-479e-8a12-198bb0144b9f
Did you ever find a solution for this? I am seeing traces but no longs
railway now has a tutorial that can be found here https://docs.railway.app/tutorials/set-up-a-datadog-agent