Hello Kalyan Gandham,
Thanks for your question.
Grafana Loki logs are usually gotten from the container logs. With Grafana loki, the typical workflow involves applications writing logs to standard output (stdout) or standard error (stderr), and then a log collection agent like Fluentd or Logstash sidecar container captures and ships them to a centralized location (Loki in this instance)
See an example architecture: https://learn.microsoft.com/en-us/azure/architecture/microservices/logging-monitoring
Please let me know if you have further questions**
You can mark it 'Accept Answer' if this helped.