Operate and Manage the Experience Service > Operating Your Experience Service > Capture Log Messages
  
Capture Log Messages
The Experience Service writes log messages to stdout and stderr. To capture all log messages in a file, redirect both stdout and stderr to a file using a command similar to the following:
sudo start-es.sh > thingserver.log 2>&1
At start up, the Experience Service outputs the following message on stderr:
This message should appear in the logs if stderr stream is captured
If this message appears in your log file then stderr is being captured correctly. If not, adjust your start scripts to correct the issue