---
title: "Discussion on \"How to block the service logs to be written in /var/log or syslogs\" | Hashnode"
description: "Discussion on \"How to block the service logs to be written in /var/log or syslogs\". How to block systemd service logs from being written to /var/log or syslog. Steps include modifying service and journald configurations"
url: "https://hashnode.com/posts/how-to-block-the-service-logs-to-be-written-in-varlog-or-syslogs/66b49363610c8ab7650a41f9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to block the service logs to be written in /var/log or syslogs](https://mkstech.hashnode.dev/how-to-block-the-service-logs-to-be-written-in-varlog-or-syslogs?utm_source=hashnode&utm_medium=feed)

How to block systemd service logs from being written to /var/log or syslog. Steps include modifying service and journald configurations

Aug 8, 2024 · 2 min read · mkstech.hashnode.dev  
Updated Aug 12, 2024  
Read the article

-   [#high-log-size](https://hashnode.com/tag/high-log-size)
-   [#syslog](https://hashnode.com/tag/syslog)
-   [#systemd](https://hashnode.com/tag/systemd)
-   [#linux](https://hashnode.com/tag/linux)
-   [#reduce](https://hashnode.com/tag/reduce)
-   [#logging](https://hashnode.com/tag/logging)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)

## Written by

[Mukesh Kumar](https://hashnode.com/@mukesh9871)

@mukesh9871 · Bangalore, India

  
[View profile](https://hashnode.com/@mukesh9871)

Software Developer by profession

I am a Software Development lead in a product based company.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
