psloglist -w into a file
        Posted  
        
            by user11588
        on Server Fault
        
        See other posts from Server Fault
        
            or by user11588
        
        
        
        Published on 2010-03-15T13:37:40Z
        Indexed on 
            2010/03/15
            13:40 UTC
        
        
        Read the original article
        Hit count: 141
        
I'm trying to redirect windows event log continuously into a file.
psloglist.exe has the -w feature (that listens for new events and outputs to console) so I tried combining it with redirection into a file like so:
psloglist -w > out.txt
It doesn't work. As new events are logged they do not show up in the file.
However, if I remove > out.txt new events do shows up in the console!
© Server Fault or respective owner