Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script for local docker logs #109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

script for local docker logs #109

wants to merge 1 commit into from

Conversation

j-s-rawat
Copy link
Contributor

@j-s-rawat j-s-rawat commented Jul 27, 2022

This script will pull the docker logs where there is a text matching 'error' or 'DATA RACE' for the past 'x' min.
Useful to find errors when user is not sure which container is causing issues and to investigate.
Once an error is spotted then the user can go and try the traditional way of looking at docker logs for further investigation

Usage
./ldl.sh 5
./ldl.sh 5 "cantabular-import-journey_dp-cantabular-api-ext_1 cantabular-import-journey_dp-filter-api_1"

@j-s-rawat j-s-rawat force-pushed the locallogs branch 2 times, most recently from 97babaa to 10d0276 Compare July 27, 2022 08:55
Copy link
Contributor

@PauloPortugal PauloPortugal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the egrep command as that does not exist on Macs
Use grep -E instead

@j-s-rawat j-s-rawat force-pushed the locallogs branch 3 times, most recently from 7187302 to 58169eb Compare July 27, 2022 09:29
PauloPortugal
PauloPortugal previously approved these changes Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants