Turn Off YugabyteDB TServer INFO Message Logging

The YB-TServer service performs the actual input-output for end-user requests. It handles Data Manipulation Language (DML) statements such as INSERTUPDATEDELETE, and SELECT

YB-TServer actions are logged and organized by error severity: FATALERRORWARNINGINFO.

The log level is defined by the –minloglevel gFlag, which defaults to INFO.

The YB-TServer processes are quite chatty and log ALOT of INFO messages. If you are only intertesed in non-INFO messages, you can turn them off.

Example:

				
					[root@Cloud_Server_0 ~]# yugabyted start | grep log
| Log Dir             : /root/var/logs                                                                     |

[root@Cloud_Server_0 ~]# wc -l /root/var/logs/tserver/yb-tserver.INFO
656 /root/var/logs/tserver/yb-tserver.INFO
				
			

Wow, there were 656 entries added to the YB-TServer log immediately after a start.

Now let’s see how many lines are written if we change the minimum log level.

				
					[root@Cloud_Server_0 ~]# yugabyted destroy
Stopped yugabyted using config /root/var/conf/yugabyted.conf.
Deleted logs at /root/var/logs.
Deleted data at /root/var/data.
Deleted conf at /root/var/conf.

[root@Cloud_Server_0 ~]# yugabyted start --tserver_flag="minloglevel=1" | grep log
| Log Dir             : /root/var/logs                                                                     |

[root@Cloud_Server_0 ~]# wc -l /root/var/logs/tserver/yb-tserver.INFO
10 /root/var/logs/tserver/yb-tserver.INFO
				
			

No more entries beyond those first 10 lines are written to tServer INFO log.

Have Fun!