Alex Vandiver
f66d952c57
log-search: Support HTTP method limits.
2023-03-22 11:20:47 -07:00
Alex Vandiver
b2666bf054
log-search: Compare lowered terms to lowered log line.
...
This allows us to search for upper-case things.
2023-03-22 11:20:47 -07:00
Alex Vandiver
95abcffb75
log-search: Fix precedence in no-color case.
2023-02-22 11:43:13 -08:00
Alex Vandiver
38b7ecff68
log-search: Add a --timeline option to show gaps and overlaps.
2023-02-21 11:10:24 -08:00
Alex Vandiver
cfd9e56d1a
log-search: Do no use color codes if output is not a TTY.
2023-02-21 11:10:24 -08:00
Anders Kaseorg
81a7c7502f
requirements: Upgrade Python requirements.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-02-03 16:36:54 -08:00
Anders Kaseorg
443b974b3e
python: Apply changes from pyupgrade.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-07-20 22:33:28 -07:00
Anders Kaseorg
d104407531
log-search: Fix re.Match type annotations.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-07-05 12:55:03 -07:00
Alex Vandiver
2b02722d16
log-search: Add a filter to exclude all lines not explicitly wanted.
2022-06-28 15:59:31 -07:00
Alex Vandiver
180565d8d6
log-search: Fix copy/paste-o in filtering for presence.
2022-06-28 15:59:31 -07:00
Alex Vandiver
258b658cc0
log-search: Allow multiple search terms.
...
This allows AND'ing multiple terms together.
2022-05-06 17:45:46 -07:00
Alex Vandiver
bd73e7d411
log-search: Factor out argument parsing.
2022-05-06 17:45:46 -07:00
Alex Vandiver
8eab5f6931
log-search: Add status code search.
...
This moves log filename parsing after the filter parsing, as that can
now enable --nginx.
2022-05-06 17:45:46 -07:00
Alex Vandiver
0bad002c14
log-search: Factor out logfile name parsing.
2022-05-06 17:45:46 -07:00
Alex Vandiver
67e641f37d
log-search: Add a filter by path.
2022-05-06 17:45:46 -07:00
Alex Vandiver
df47c5a750
log-search: Update docs to include client-id as an option.
2022-05-06 17:45:46 -07:00
Alex Vandiver
b1749259d4
log-search: Fix URLs for non-zulipchat.com hosts.
2022-05-06 17:45:46 -07:00
Alex Vandiver
e3a65b1528
log-search: Some Django log lines do not include hostname.
2022-05-06 17:45:46 -07:00
Alex Vandiver
fe17a4d6d0
log-search: Handle ^C more gracefully.
2022-05-06 17:45:46 -07:00
Alex Vandiver
da4ae3ff24
log-search: Filter out user avatars.
2022-05-06 17:45:46 -07:00
Alex Vandiver
d3ae7480cc
log-search: Handle settings.LOGGING_SHOW_PID.
2022-05-06 17:45:46 -07:00
Alex Vandiver
bd298ba753
log-search: Not all servers are in UTC.
2022-05-06 17:45:46 -07:00
Alex Vandiver
65b99377d2
log-search: Show duration.
2022-05-03 13:44:29 -07:00
Alex Vandiver
056895cc33
log-search: Search for user-ids.
2022-05-03 13:44:29 -07:00
Alex Vandiver
b355a0a63e
log-search: Default to searching python logfiles.
...
These have more accurate timestamps, and have user information --
but are harder to parse, and will not show requests when Django or
Tornado is stopped.
2022-05-03 13:44:29 -07:00
Alex Vandiver
ba1237119c
log-search: Add a tool to search nginx logs by IP/hostname.
...
This is a script to search nginx log files by server hostname or
client IP address, and output matching lines, all while skipping
common and less-interesting request lines.
2022-05-03 13:44:29 -07:00