Public Message Logging

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Public Message Logging

Postby Ninjaoninja2 » 31 Dec 2013, 22:38

Hello,
I wanted to know how I would log messages like Club Penguin would. I tried to go into the log for the Admin Tool but all it says is this on every line: 2013/12/31 16:57:59.125 - [ WARNING ] [id: 20] (SmartFoxServer.readIncomingMessages): Unexpected / Malformed input: java.nio.charset.MalformedInputException: Input length = 1
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Public Message Logging

Postby Lapo » 02 Jan 2014, 12:23

Can you explain exactly what you are trying to do?
You want to log each and every public chat message in the log files? Are you sure about this? It may generate an awful lot of data.

2013/12/31 16:57:59.125 - [ WARNING ] [id: 20] (SmartFoxServer.readIncomingMessages): Unexpected / Malformed input: java.nio.charset.MalformedInputException: Input length = 1

The error indicates that one or more clients are sending incomprehensible data to the server. In other words they don't speak the SFS protocol. It might be a temporary issue, but if it persists for long time and high frequency it could be a malicious attack.

You should monitor your logs and network more closely.
Lapo
--
gotoAndPlay()
...addicted to flash games
Ninjaoninja2
Posts: 204
Joined: 22 Sep 2013, 23:33

Re: Public Message Logging

Postby Ninjaoninja2 » 03 Jan 2014, 00:31

Thank you Lapo for this response I may not end up making the logs but I really do appreciate the feedback on the error could this be a DDOS attack?
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Public Message Logging

Postby Lapo » 03 Jan 2014, 10:02

Maybe, yes. You will have to continue monitoring the network, maybe with the help of your system admin if you don't know what to look for.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 105 guests