Skip to content

RegexSearchPlugin#182

Open
alexandraBara wants to merge 5 commits intodevelopmentfrom
alex_regex_plugin
Open

RegexSearchPlugin#182
alexandraBara wants to merge 5 commits intodevelopmentfrom
alex_regex_plugin

Conversation

@alexandraBara
Copy link
Copy Markdown
Collaborator

@alexandraBara alexandraBara commented Apr 9, 2026

Summary

Generic regex search plugin

Test plan

  • pytest test/unit
  • pytest test/functional (if applicable)
  • pre-commit run --all-files

Checklist

  • Added/updated tests (or explained why not)
  • Updated docs/README if behavior changed
  • No secrets or credentials committed
    Sample run:
venv) alexbara@ausalexbara02:~/node-scraper$ node-scraper  run-plugins RegexSearchPlugin --collection False   --data test/functional/fixtures/regex_search_multi_logs   --error-regex '{"regex":"ERROR[: ].*","message":"Line containing ERROR","event_category":"UNKNOWN","event_priority":"ERROR"}'   --error-regex '{"regex":"disk full","message":"Disk full mentioned","event_category":"STORAGE","event_priority":"WARNING"}'
  2026-04-09 15:40:17 CDT       INFO               nodescraper | Log path: ./scraper_logs_ausalexbara02_2026_04_09-03_40_17_PM
  2026-04-09 15:40:17 CDT       INFO               nodescraper | System Name: ausalexbara02
  2026-04-09 15:40:17 CDT       INFO               nodescraper | System SKU: None
  2026-04-09 15:40:17 CDT       INFO               nodescraper | System Platform: None
  2026-04-09 15:40:17 CDT       INFO               nodescraper | System location: SystemLocation.LOCAL
  2026-04-09 15:40:17 CDT       INFO               nodescraper | --------------------------------------------------
  2026-04-09 15:40:17 CDT       INFO               nodescraper | Running plugin RegexSearchPlugin
  2026-04-09 15:40:17 CDT       INFO               nodescraper | Running data analyzer: RegexSearchAnalyzer
  2026-04-09 15:40:17 CDT    WARNING               nodescraper | (RegexSearchPlugin) task completed with warnings (1 warnings: Disk full mentioned [file: /home/alexbara/node-scraper/test/functional/fixtures/regex_search_multi_logs/storage_warn.log])
  2026-04-09 15:40:17 CDT       INFO               nodescraper | Closing connections
  2026-04-09 15:40:17 CDT       INFO               nodescraper | Running result collators
  2026-04-09 15:40:17 CDT       INFO               nodescraper | Running TableSummary result collator
  2026-04-09 15:40:17 CDT       INFO               nodescraper |

+-------------------+---------+---------------------------------------------------------------------------------+
| Plugin            | Status  | Message                                                                         |
+-------------------+---------+---------------------------------------------------------------------------------+
| RegexSearchPlugin | WARNING | Analysis warning: task completed with warnings (1 warnings: Disk full mentioned |
|                   |         | [file: /home/alexbara/node-                                                     |
|                   |         | scraper/test/functional/fixtures/regex_search_multi_logs/storage_warn.log])     |
+-------------------+---------+---------------------------------------------------------------------------------+

  2026-04-09 15:40:17 CDT       INFO               nodescraper | Data written to csv file: ./scraper_logs_ausalexbara02_2026_04_09-03_40_17_PM/nodescraper.csv

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