2025.11 removal of homeassistant.log, custom integration replacement

For those of you that want the log file back after updating to 2025.11, you can use this integration.

Installation through HACS

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.

Just keep in mind that it will not capture some lines when HA starts up. It should start pretty early it just may not capture all the debug logs about custom integrations.


If you have questions or concerns about the removal of the log file, this is not the thread for you. This is a personal project topic, please note the location of this thread Share your Projects!

33 Likes

I’m guessing this keeps the new log saving system intact and simply copies the data to a separate (like previously) log file?

It adds the logging handle back. So it’s essentially the same as before, just a delayed startup because it loads it as an integration instead of loading in the bootstrap.

If this ends up being popular, I’ll see if I can load it faster.

5 Likes

Installed! Thanks!

Is it installable without HACS?

Yes, follow the directions in the repo.

1 Like

I’m not a programmer, so my question could be stupid:

Could this module be modified to send all events to an external syslog server instead of a file?

You could modify it but it would be very risky. I would not do it. I think you’d be better off looking at another service to do that.

The risk is related to logger and how it behaves when it cannot access a file because of a network dropout.

The custom integration works fine, thanks @petro. I use the log-viewer addon to see the logs, however the ā€œnewā€ log files dosen’t load there. Is it possible to view the log fies with a web viewer?

You have to reload the addon after startup most likely. The addon only looks for the file

1 Like

Not sure if this is the right place but…

I’m not overly concerned about ā€˜losing’ the logs but would like to be able to know the size of the file.
I use it to show me if something is going badly :wink:

What is the location of the ā€˜actual’ log file and can I interrogate it?

image

That’s just it it’s not there anymore and you cannot unless you put it back.

I also spent two hours last night trying to hit it from the HA api and that endpoint doesn’t seem to work anymore (and I would think redirecting REST to the internal storage would bee the natural alternative…) with or without the file in place. It just 404’s. The only thing I’ve been able to do to hit it programattially is put it back with Petros solution and then command line sensor it…

This one id REALLY like to thump whomever did NOT think this one through…Absolutely boneheadded decision…

5 Likes

Is it expected:

You have to install it.

Yeah, I know :slight_smile:

It’s just waiting for a restart, but this warning

I’ve changed my mind.
I really miss the logs being accessible outside of HA (in my config folder)

Given petro created this in ā€˜no time’ after the HA version release (without in any way wishing to denigrate the effort you put in) surely this could have been added as an option. It really is this kind of small but far reaching decision that I think is often a blot on the otherwise impeccable copybook of the HA ā€˜leadership’.

3 Likes

I am using that custom integration and i am seeing it creates an home-assistant.log, an home-assistant.log_1 and an home-assistant.log_old. Is this behaviour correct?

The integration only creates .1 and .log. The other file is created by core

1 Like

Thanks, but why the core creates that file if it doesn’t create a log file?

They never pulled out the rest of the plumbing. You get the file to go back the system starts working like it used to.

Because this…

It did it before so it does it again.

Which is yet another indicator to me they should not have done it in the first place.

1 Like