​​ ​

The Apple Support Community will permanently close on November 20, 2026. Starting today, the site will no longer accept new posts and is available in a read-only state.


You can continue to find trusted guidance and support on the official Apple Support site. 


We want to thank the community members who have contributed their time and expertise to help others with their Apple products.


Does Notification Center keep a log of messages?

I've searched around for an answer to this question but I'm not finding any info, maybe that's my answer right there. I thought I should pose it here though: Is Notification Center logging the notification messages in Mavericks or Mountain Lion?


I mean, I often don't clear stuff out of there for a long time so the messages are being stored somewhere. If so, what sort of log file or database is it and where is it found?

iMac, OS X Mavericks (10.9.2), 2.7 GHz Intel Core i5, 12 GB RAM

Posted on Mar 27, 2014 10:51 PM

9 replies

Mar 27, 2014 11:08 PM in response to dugost

User Notifications are stored in ~/Library/Application Support/NotificationCenter/, in a sqlite database (--.db file). System notification to users may be stored in a separate location - I haven't gone looking for them - but that would most likely be in a folder of the same name in a different domain.

Mar 27, 2014 11:33 PM in response to twtwtw

Thanks, I don't know how I overlooked that directory but I did find the db file there and went through the tables. I didn't find any useable info though. That is, I didn't see any readable text that matches up with notifications currently being displayed or those previously displayed.


Unless it's in the encoded_data column of the notifications table. I appreciate the info in any case!

Mar 29, 2014 4:00 AM in response to dugost

dugost wrote:


I did find the db file there and went through the tables. I didn't find any useable info though. That is, I didn't see any readable text that matches up with notifications currently being displayed or those previously displayed.


You can get the text out of the sqllite db by using the 'strings' command in Terminal.**


If you have the strings utility just type strings, a space, and then drag the database file from a Finder window into Terminal (you may have more than one, see below). Click in the window and type a pipe and open -f, like this


strings <drag the Sql db file here> | open -f


then hit 'return'. In Text Edit (assuming that's what opens as the default editor), hit 'command-F' and type NSInformativeText. Use 'command-G' to cycle through the notifications (many will be meaningless application or system notifications without text, and be warned there'll be lots of them). Use 'shift-command-G' to go backwards through the search.


If you're comfortable with Terminal and you know what you're looking for, you can also pipe that 'strings' command through 'grep' and do other text-based operations on it (eg. with sed). Otherwise, just use the 'find' command in your text editor.


If you have more than one notifications db, you may want to concatenate them before searching. You can do that with


strings <first database file> >> ~/Desktop/notificationsLog.txt ; strings <second database file> >> ~/Desktop/notificationsLog.txt


(repeat as required with a semi-colon between each before hitting 'return'). In this scenario, the file won't open automatically, but you'll find it on your Desktop.



**nb. you may have to have Xcode's command line tools installed to have the 'strings' utility, I'm not sure; test by doing 'man strings' and see whether it returns an error.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Does Notification Center keep a log of messages?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.