Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid log lines in Info log ... #5

Open
mohierf opened this issue Jul 22, 2014 · 2 comments
Open

Invalid log lines in Info log ... #5

mohierf opened this issue Jul 22, 2014 · 2 comments

Comments

@mohierf
Copy link

mohierf commented Jul 22, 2014

Invalid logs lines should make a debug log ... not an info log !

2014-03-09 08:11:18,683 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: 24x7;-1;1
2014-03-09 08:11:18,717 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,717 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: none;-1;0
2014-03-09 08:11:18,752 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,752 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: workhours;-1;0
2014-03-09 08:11:18,787 [1394349078] Debug : [Livestatus Log Lines] Does not match
2014-03-09 08:11:18,787 [1394349078] Info : [LogStoreMongoDB] This line is invalid: [1394349075] TIMEPERIOD TRANSITION: us-holidays;-1;0
2014-03-09 08:11:18,822 [1394349078] Debug : [Livestatus Log Lines] Does not match
@Seb-Solon
Copy link
Contributor

Well, it's a point of view :). Invalid is something wrong so you may say it to the user.

@mohierf
Copy link
Author

mohierf commented Jul 23, 2014

In fact, you may choose:

  • do not use logstore-mongodb, or
  • fill the brokerd.log with junk logs.

It is also a point of view ;-)

In fact, logstore-mongo makes a log in brokerd.log each time you write a log line in shinken.log because this module cannot store this log in mongo ! Morevover, as far as I understand, it is the normal behaviour not to store this log ... In this case, I prefer having a debug log or, even better, no log at all ...

lermit added a commit to jetpulp/mod-logstore-mongodb that referenced this issue Apr 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants