Exporting on-prem SEQ logs


Importing and exporting seq logs

These instructions are from the command prompt, and assuming seqcli.exe is in the folder:  "C:\Program Files\Seq\Client"

In an ideal setup we have interop and apm logging to the same seq server.  The logging.config file we ship with apm has some comments with what logging is good to turn on for APM.

NOTE: if you want to specify a filter you add the -f "" part in green.  This can be the filter that you use on a webpage to filter results.

If you aren't using a filter from the webpage, remove the -f part.

cd /d "C:\Program Files\Seq\Client"

This is an export, with the filter inside the double quotes.

I pipe it to a file c:\logs.json

With filter:

seqcli search --json -f "ActivityCorrelationId = '037c0739-b43b-42d6-92e4-c4b20cbc43d4'" --count=1000000 > c:\logs.json

With no filter:

seqcli search --json --count=1000000 > c:\logs.json

I was able to empty my logs and test importing with:

seqcli ingest -i c:\logs.json --json

It’s a little complicated, but at least we know it is doable.