# docker compose logs

**Descripción:** View output from containers

**Uso:** `docker compose logs [OPTIONS] [SERVICE...]`










## Descripción

Displays log output from services


## Opciones

| Opción                                                        | Predeterminado                                        | Descripción                                                                                                                                    |
| ------------------------------------------------------------- | ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  | `-f`, `--follow` |  |  Follow log output |

 | `--index` |  |  index of the container if service has multiple replicas |

 | `--no-color` |  |  Produce monochrome output |

 | `--no-log-prefix` |  |  Don't print prefix in logs |

 | `--since` |  |  Show logs since timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)<br> |

 | `-n`, `--tail` | `all` |  Number of lines to show from the end of the logs for each container<br> |

 | `-t`, `--timestamps` |  |  Show timestamps |

 | `--until` |  |  Show logs before a timestamp (e.g. 2013-01-02T13:23:37Z) or relative (e.g. 42m for 42 minutes)<br> |







