PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 5, 2022

[FIXED] What do the symbols in the Redis server logfile mean?

 September 05, 2022     logging, redis     No comments   

Issue

When I open the logfile for Redis called "server_log.txt" I notice different symbols in the column just before the column with the actual message. For instance, here are a couple of lines from the file (notice the "*" and "#"):

[2004] 11 Nov 10:24:36.721 * Background saving started by pid 8172
[2004] 11 Nov 10:24:36.911 # fork operation complete

I also see that some of the messages are prepended with either "+" or "-":

[788] 11 Nov 19:10:44.803 # +tilt #tilt mode entered
[788] 11 Nov 19:11:14.903 # -tilt #tilt mode exited

Does anyone know what these symbols mean?


Solution

For the "*" and "#" symbols, these indicate the severity of the message:

.  // DEBUG
-  // INFO
*  // NOTICE
#  // WARNING 

For the '+' and '-', these can sometimes indicate a mode/flag that is on/off. It's not always mode/flag, as shown in this list of sentinel pub/sub channel-names : https://redis.io/docs/manual/sentinel/



Answered By - Darren Smith
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing