├── .env.azure.example ├── .env.openai.example ├── .flake8 ├── .gitignore ├── .vscode └── settings.json ├── LICENSE.txt ├── NOTICE.txt ├── README.md ├── example_outputs └── explainfunction │ └── sha256sum_sha256_process_block.txt ├── requirements.txt ├── sgrk ├── cmdanalysis.py ├── cmdexec.py ├── commands │ ├── analyzecmd.py │ ├── code.py │ ├── debughost.py │ ├── explainfunction.py │ ├── explainprocess.py │ ├── findfaster.py │ ├── stacktrace.py │ └── topn.py ├── llm.py └── ui.py ├── sysgrok.py ├── testinputs ├── stacktrace1.txt ├── stacktrace2.txt ├── stacktrace3.txt ├── topn1.txt ├── topn2.txt ├── topn3.txt ├── topn4.txt └── topn5.txt └── utils ├── converteupstacktrace.py └── converteuptopn.py /.env.azure.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/.env.azure.example -------------------------------------------------------------------------------- /.env.openai.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/.env.openai.example -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length=120 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | venv 2 | __pycache__/ 3 | .env 4 | *.bck 5 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /NOTICE.txt: -------------------------------------------------------------------------------- 1 | sysgrok 2 | Copyright 2023 Elasticsearch B.V 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/README.md -------------------------------------------------------------------------------- /example_outputs/explainfunction/sha256sum_sha256_process_block.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/example_outputs/explainfunction/sha256sum_sha256_process_block.txt -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/requirements.txt -------------------------------------------------------------------------------- /sgrk/cmdanalysis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/cmdanalysis.py -------------------------------------------------------------------------------- /sgrk/cmdexec.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/cmdexec.py -------------------------------------------------------------------------------- /sgrk/commands/analyzecmd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/commands/analyzecmd.py -------------------------------------------------------------------------------- /sgrk/commands/code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/commands/code.py -------------------------------------------------------------------------------- /sgrk/commands/debughost.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/commands/debughost.py -------------------------------------------------------------------------------- /sgrk/commands/explainfunction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/commands/explainfunction.py -------------------------------------------------------------------------------- /sgrk/commands/explainprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/commands/explainprocess.py -------------------------------------------------------------------------------- /sgrk/commands/findfaster.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/commands/findfaster.py -------------------------------------------------------------------------------- /sgrk/commands/stacktrace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/commands/stacktrace.py -------------------------------------------------------------------------------- /sgrk/commands/topn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/commands/topn.py -------------------------------------------------------------------------------- /sgrk/llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/llm.py -------------------------------------------------------------------------------- /sgrk/ui.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sgrk/ui.py -------------------------------------------------------------------------------- /sysgrok.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/sysgrok.py -------------------------------------------------------------------------------- /testinputs/stacktrace1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/testinputs/stacktrace1.txt -------------------------------------------------------------------------------- /testinputs/stacktrace2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/testinputs/stacktrace2.txt -------------------------------------------------------------------------------- /testinputs/stacktrace3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/testinputs/stacktrace3.txt -------------------------------------------------------------------------------- /testinputs/topn1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/testinputs/topn1.txt -------------------------------------------------------------------------------- /testinputs/topn2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/testinputs/topn2.txt -------------------------------------------------------------------------------- /testinputs/topn3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/testinputs/topn3.txt -------------------------------------------------------------------------------- /testinputs/topn4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/testinputs/topn4.txt -------------------------------------------------------------------------------- /testinputs/topn5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/testinputs/topn5.txt -------------------------------------------------------------------------------- /utils/converteupstacktrace.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/utils/converteupstacktrace.py -------------------------------------------------------------------------------- /utils/converteuptopn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/elastic/sysgrok/HEAD/utils/converteuptopn.py --------------------------------------------------------------------------------