<@U04UQ68083H> What audit trails / logs are availa...
# ory-copilot
s
@chilly-king-10285 What audit trails / logs are available in Ory Network?
c
A message from kapa.ai
Ory provides as much context as possible for each log operation. There are two types of logs available in Ory Network:
application
logs and
audit
logs. Application logs are intended for operators and developers, while audit logs document allowed and denied authorizations, failed and succeeded login attempts, and so on. Here's an example of both types of logs:
Copy code
time=2020-05-20T11:57:09+02:00 level=info msg=An example log message. audience=application service_name=foo service_version=bar   time=2020-05-20T11:57:29+02:00 level=info msg=Login successful. audience=audit service_name=foo service_version=bar
Additionally, if
LOG_LEVEL=trace
, traces will be included for log calls and errors. Here's an example of a trace:
Copy code
{    "audience": "application",    "error": {    "message": "example error",    "trace": "\<http://ngithub.com/ory/x/logrusx.TestErrorTrace.func1|ngithub.com/ory/x/logrusx.TestErrorTrace.func1>\n\t/Users/foobar/go/src/github.com/ory/x/logrusx/logrus_test.go:52\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2012\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2807\nnet/http.(*conn).serve\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:1895\nruntime.goexit\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373"    },    "file": "/Users/user/go/src/github.com/ory/x/logrusx/logrus_test.go:52",    "func": "<http://github.com/ory/x/logrusx.TestErrorTrace.func1|github.com/ory/x/logrusx.TestErrorTrace.func1>",    "level": "error",    "msg": "I am an example error",    "service_name": "foo",    "service_version": "bar",    "time": "2020-05-20T12:13:53+02:00"   }
For more information on logs and audit trails in Ory Network, refer to the [Ory documentation](https://www.ory.sh/docs/self-hosted/operations/logging).
s
@chilly-king-10285 You’ve provided a link to Self Hosted docs - what about for the Cloud solution?
c
A message from kapa.ai
Apologies for the confusion. In the provided extracts, there is no specific information about logs and audit trails for the Ory Cloud solution. However, it is mentioned that Ory uses logging in its cloud network, enabling forensic analysis of potential incidents [source](https://www.ory.sh/docs/security-compliance/gdpr). For more information on Ory Cloud logging, I recommend checking the [Ory documentation](https://www.ory.sh/docs) or reaching out to their support team.
m
Hello @stale-greece-87479 What audit trails / logs are you interested in specifically? We are working on exposing those to Ory Network customers, some will be added to the console dashboard soon.
s
Hey @magnificent-energy-493! In particular we’d like audit trails around authentication attempts - I guess we can get successful log-in records from a webhook atm, but I don’t think we can access failures? Similar for authorisation attempts - again, we might be able to roll our own in some circumstances, but a centralised solution would be much nicer / more robust.