Skip to content

Conversation

soar
Copy link

@soar soar commented May 29, 2022

This flag adds an ability to print JSON lines as formatted (and, optionally, highlighted) text. Supports --query and --color options.

Before:

awslogs get RDSOSMetrics instance-id --query '{engine: engine, uptime: uptime, processList: processList}'

Screenshot Before

After:

awslogs get RDSOSMetrics instance-id --query '{engine: engine, uptime: uptime, processList: processList}' --json

Screenshot After

Updated to match the new code style. Conflicts fixed.
The old version is still available in the fork here: https://github.com/soar/awslogs/tree/feature/pretty-json-legacy

to print JSON lines as formatted (and, optionally, highlighted) text
@soar soar marked this pull request as ready for review May 29, 2022 20:46
@soar soar mentioned this pull request May 29, 2022
# Conflicts:
#	awslogs/core.py
#	setup.py
@soar
Copy link
Author

soar commented May 17, 2024

@jorgebastida Hello! I see activity in the repo, so I updated the branch. Review this, please.

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.

1 participant