Title: New `logs` CLI command · Issue #410 · rabbitstack/fibratus · GitHub
Open Graph Title: New `logs` CLI command · Issue #410 · rabbitstack/fibratus
X Title: New `logs` CLI command · Issue #410 · rabbitstack/fibratus
Description: Motivation Examining the Fibratus logs can be a hassle, especially if the end user is not familiar with Powershell. It would be much more convenient if the Fibratus CLI provided the facilities for grepping log files, filtering relevant l...
Open Graph Description: Motivation Examining the Fibratus logs can be a hassle, especially if the end user is not familiar with Powershell. It would be much more convenient if the Fibratus CLI provided the facilities for ...
X Description: Motivation Examining the Fibratus logs can be a hassle, especially if the end user is not familiar with Powershell. It would be much more convenient if the Fibratus CLI provided the facilities for ...
Opengraph URL: https://github.com/rabbitstack/fibratus/issues/410
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New `logs` CLI command","articleBody":"**Motivation**\r\n\r\nExamining the Fibratus logs can be a hassle, especially if the end user is not familiar with Powershell. It would be much more convenient if the Fibratus CLI provided the facilities for grepping log files, filtering relevant log messages, etc.\r\n\r\n**Feature**\r\n\r\nExpand the Fibratus CLI with a new `logs` command. The command should ideally provide the following set of modifiers:\r\n\r\n- `-f`: tails the log file in realtime as the file gets written by the Fibratus process \r\n- `-n`: shows the last N lines of the log file\r\n- `-h`: shows the first N lines of the log file\r\n- `-l`: filters the log messages by the log level (debug, info, warning, and error)\r\n- `--grep`: accepts the Go-compatible regular expression and applies on each log line. If it produces any match, the log line is shown on the console.\r\n\r\nIf the command is run without any modifiers, the entire log file is read and dumped on the console.\r\n\r\nExamples:\r\n\r\nShow last 10 lines and watch for subsequent changes in realtime:\r\n\r\n```\r\n$ fibratus logs -n 10 -f\r\n```\r\n\r\nFilter logs by info level\r\n\r\n```\r\n$ fibratus logs -l info\r\n```\r\n\r\n**Additional context**\r\n\r\nFor watching the file changes in realtime, consider the usage of the [fsnotify](https://github.com/fsnotify/fsnotify) package.\r\n","author":{"url":"https://github.com/rabbitstack","@type":"Person","name":"rabbitstack"},"datePublished":"2024-12-13T18:01:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/410/fibratus/issues/410"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c92e8956-f697-8ae2-fcfa-13a837fcf828 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9368:349E72:2E93822:42A24F7:6A4C0B3D |
| html-safe-nonce | 2996ca15c54ae20dd9301e95925164348980c99beced68dedefcf8951ced0d38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MzY4OjM0OUU3MjoyRTkzODIyOjQyQTI0Rjc6NkE0QzBCM0QiLCJ2aXNpdG9yX2lkIjoiODc1MDgzMjc0ODgyMDQzMzcyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 223535a41bdc1ed79b676e8d862f24ccbe72afcc23be34df84f5142e5e447157 |
| hovercard-subject-tag | issue:2738923942 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rabbitstack/fibratus/410/issue_layout |
| twitter:image | https://opengraph.githubassets.com/398eb3b14fc28e26ee96e2cb63049df0db45c12a30be2325389da06284649e01/rabbitstack/fibratus/issues/410 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/398eb3b14fc28e26ee96e2cb63049df0db45c12a30be2325389da06284649e01/rabbitstack/fibratus/issues/410 |
| og:image:alt | Motivation Examining the Fibratus logs can be a hassle, especially if the end user is not familiar with Powershell. It would be much more convenient if the Fibratus CLI provided the facilities for ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rabbitstack |
| hostname | github.com |
| expected-hostname | github.com |
| None | 940b0dbb4d0fe72558ee760b2ff0f25a504383fdfe404f3a7691ec853b8dc17f |
| turbo-cache-control | no-preview |
| go-import | github.com/rabbitstack/fibratus git https://github.com/rabbitstack/fibratus.git |
| octolytics-dimension-user_id | 11174375 |
| octolytics-dimension-user_login | rabbitstack |
| octolytics-dimension-repository_id | 54714794 |
| octolytics-dimension-repository_nwo | rabbitstack/fibratus |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 54714794 |
| octolytics-dimension-repository_network_root_nwo | rabbitstack/fibratus |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b0267d17ea43e55446153a7e2c60bb6ac3cffd6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width