I found that keeping a diary every day is difficult.

Literal

Every-day diary [object-を] keep [nominalizer-の] [topic-は] difficult thing [quotative-だと] realized.

の nominalizes 毎日日記をつける, which becomes the topic. ~だと分かった ('came to realize that') reports a discovery through experience.