A tool for parsing flat log files and importing them into Seq.
Features:
- Auto-detects file type
- Parses the log entries down for a somewhat structured logging experience (ie. log level, time, thread) including certain common/useful messages so that it uses a common message template.
- Supports:
- Octopus Server Log
- Web Log
- IIS Log
- Octopus Deployment log exported from the web UI
- It can easily be extended to other log formats or parsing extra log lines
SeqFlatFileImport.exe OctopusServer.txt OctopusServer.0.txt --batch MyDebuggingTask
SeqFlatFileImport.exe c:\logs --batch MyDebuggingTask
- Install and run
nuke
or run theDefault
target from your IDE (eg. Rider with the NUKE plugin) - Running directly:
- See examples above
- Running in Docker:
- A docker image with the tag
seq-flat-file-import
is created from the Nuke build - You will need to run a Seq instance in a separate container
- Example of importing all log files in your current working directory:
- Windows:
docker run --rm -v ${PWD}:/logs seq-flat-file-import --server=http://host.docker.internal:5341 ./logs
- Linux/Mac:
docker run --rm -v $(pwd):/logs seq-flat-file-import --server=http://host.docker.internal:5341 ./logs
- Windows:
- A docker image with the tag
.\scripts\reset-seq.cmd
can be used to reset your local Seq instance, however this does not work with Seq instances in a container.