> ## Documentation Index
> Fetch the complete documentation index at: https://mw-docs.middleware.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Logs

<Accordion title="What is charge of log rehydration?">
  Nothing. We don't charge anything for log rehydration. We have very transperent pricing and you pay \$1 for 1M log events and no hidden charges.
</Accordion>

<Accordion title="Does log size impact the log pricing?">
  no. log charges are based on log events and not on log size (\$1 for 1M log events)
</Accordion>

<Accordion title="How to retain the old logs?">
  We give data retention upto 1 year for logs. to retrive older logs , you can send an request at [hello@middleware.io](mailto:hello@middleware.io)
</Accordion>

<Accordion title="What are charges for the logs generated from serverless application?">
  There are no additional charges for logs genereated by serverless application. you will pay charge only for log monitoring (\$1 for 1M log event)
</Accordion>

<Accordion title="How to create alerts on custom logs?">
  Go to Alerts -> Create new -> choose the detection method Logs <br />
  Now select "Log type" -> message <br />
  Alert will be sent for the logs which will have this message.
  For ex: if you want to get an alert on logs which has text "error : data not found" , you can put it as message.

  <img src="https://mintcdn.com/middlewareio/jleIVd7TDhBlp-my/images/alert/log%20alert.png?fit=max&auto=format&n=jleIVd7TDhBlp-my&q=85&s=db38668f798effe90b9aa17484518e7d" width="1920" height="934" data-path="images/alert/log alert.png" />
</Accordion>

<Note> Need assistance or want to learn more about Middleware? Contact us at support\[at]middleware.io. </Note>
