Update README.md
Browse files15 unmodified lines161718192021222324252627282930314 unmodified lines36373829394041424315 unmodified linesQuery your nginx logs in plain English — fully offline, read-only, 15M params.
## How to use
Via the CLI (recommended — includes validation + safe execution):
```bashgit clone https://github.com/devang007/logX && cd logX./install.sh # downloads this model zip automaticallylogx -q "top 5 ips" -src /var/log/nginx/access.log```
Run directly with 🤗 Transformers:
```python4 unmodified linesprint(tok.decode(model.generate(ids, max_length=128)[0], skip_special_tokens=True))# {"action":"count","source":"nginx_access","filters":[{"field":"status","op":"eq","value":"502"}],"time":{"last":"1h"}}```
But this would only give you the commands to run , parser and cli commands would run those dsl on terminal , so to really query your logs run it on cli.
NL → nginx-log-query translation model. Fine-tune of[`google/t5-efficient-tiny`](https://huggingface.co/google/t5-efficient-tiny)README.md+12-1