aaa
Project description
grep command for New Relic Logs
This package provides a command nrgrep
which is grep-like command for New Relic Logs.
New Relic can store plenty of logs and we can query it really fast on the very nice UI on the web site, but some of developers still prefer to use command line interface to query logs than modern UIs. This command helps such kind of people.
Install
pip install newrelic-grep
Prereqiusits
Set environment variables to access New Relic API:
NR_API_KEY USER API key
NR_ACCOUNT_ID Account ID of New Relic User
Usage
# nrgrep [--since DATETIME] [--until DATETIME] <KeyWord to search>
Exapmple
nrgrep --since 20230301140000 --until 20230301150000 'Failed to write'
Options
--since
Start time to be queried.
Format is YYYYmmddHHMMSS
.
You can omit right part if you want.
2023030114
will be 20230301140000
--until
End time to be queried.
Format is as same as --since
-v Show queries to be sent.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for newrelic_grep-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a49b9f042e910b6868c2f6c18d7918cae8cd08d1c8be74e8a7e8cb3358945b23 |
|
MD5 | 1b6132e6cd080b7538e2efd8f37da45f |
|
BLAKE2b-256 | 4d8b9471df7c19e8f50cc097e67a01eeed41c9289d7f0a1a9383fd6e8d76f99f |