How to set up the log.io for other logs?

2,243 views
Skip to first unread message

shaman

unread,
Jul 27, 2012, 5:45:02 AM7/27/12
to lo...@googlegroups.com
it is my first install log.io, now I see how only harvest.log checked..

Mike Smathers

unread,
Jul 27, 2012, 10:45:37 AM7/27/12
to lo...@googlegroups.com
Modify the harvester configuration in:
/etc/log.io/harvester.conf

Then stop & start the harvester process:
sudo log.io harvester stop
sudo log.io harvester start

Apple Orange

unread,
Jul 29, 2012, 8:27:17 PM7/29/12
to lo...@googlegroups.com

  log_file_paths: {
                  logio_harvester: '/var/log/log.io/harvester.log'
                  },

  log_file_paths: {
                  Auth_logs: '/var/log/auth.log'
                  },

 log_file_paths: {
                  Fail2ban_logs: '/var/log/fail2ban.log'
                  },


sudo log.io server stop && sudo log.io harvester stop && sudo log.io server start && sudo log.io harvester start

Foxinou

unread,
Aug 22, 2012, 10:21:21 AM8/22/12
to lo...@googlegroups.com
Hi there !

I don't understand !

I can add multiple logpath, but only the last one will be taken into account !!

Look at my harvester conf :
i can only see "Sys_logs" in the browser.

Tried to stop/restart the harvester/server several times. No effect. I am on Ubuntu 12.04.






  // Watch the following log files, defined by label:path mappings
  log_file_paths: {
                  logio_harvester: '/var/log/log.io/harvester.log'
                  },
  // To Monitor Auth Logs
  log_file_paths: {
              Auth_logs: '/var/log/auth.log'
          },
 // To Monitor Syslogs
 log_file_paths: {
                  Sys_logs: '/var/log/syslog'
                  },



Look at my harvester.log :

[Wed Aug 22 2012 16:20:10] INFO: Reconnecting to server...
[Wed Aug 22 2012 16:20:18] INFO: Reconnecting to server...
[Wed Aug 22 2012 16:20:21] INFO: Watching 1 log files,  sent 0 log messages.
[Wed Aug 22 2012 16:20:25] INFO: Reconnecting to server...



Thanks for your replies.
Julien

Mike Smathers

unread,
Aug 22, 2012, 1:06:21 PM8/22/12
to lo...@googlegroups.com
There can only be one "log_file_paths" definition in the harvester.conf, you can define multiple logs within it, like so:

log_file_paths: {
  "label1" : "/path/to/logs/1/",
  "label2" : "/path/to/logs/2/",
  "label3" : "/path/to/logs/3/"
}
--
Michael Smathers | Narrative Science 
Software Engineer

Foxinou

unread,
Aug 22, 2012, 6:14:48 PM8/22/12
to lo...@googlegroups.com
So "Apple Orange" was wrong ?

I saw another article on the net that was saying the same.

By the way, Will try tomorrow :)

Thanks

Foxinou

unread,
Aug 23, 2012, 4:45:21 AM8/23/12
to lo...@googlegroups.com
Hmmm still not working...

The strange thing it that i have to start/stop logio using this command :

sudo log.io harvester stop logio
sudo log.io harvester start logio

If i start without logio at the end, this is not working at all.

Result of ps :

root     15946     1  0 10:35 ?        00:00:00 node /usr/local/bin/forever start -o /var/log/log.io/server.log -e /var/log/log.io/server.log /usr/local/bin/log.io-server
root     15947 15946  1 10:35 ?        00:00:01 node /usr/local/bin/log.io-server
root     15985     1  0 10:36 ?        00:00:00 node /usr/local/bin/forever start -o /var/log/log.io/harvester.log -e /var/log/log.io/harvester.log /usr/local/bin/log.io-harvester
root     15986 15985  1 10:36 ?        00:00:01 node /usr/local/bin/log.io-harvester


Tried this in the harvester.conf not working (nothing is shown on the left pane)


  // Watch the following log files, defined by label:path mappings
  log_file_paths: {
                "logio_harvester" : "/var/log/log.io/harvester.log"
//              Auth_logs : "/var/log/auth.log"
                "Sys_logs" : "/var/log/syslog"
                  },

With this :


  // Watch the following log files, defined by label:path mappings
  log_file_paths: {
                "logio_harvester" : "/var/log/log.io/harvester.log"
//              Auth_logs : "/var/log/auth.log"
//              "Sys_logs" : "/var/log/syslog"
                  },


Only logio_harvester is shown


Damn.....

i the log files are empty :

ls -ltr
total 0
-rwxr-xr-x 1 root root 0 août  23 10:35 server.log
-rwxr-xr-x 1 root root 0 août  23 10:41 harvester.log

Foxinou

unread,
Aug 23, 2012, 10:05:30 AM8/23/12
to lo...@googlegroups.com
Hi !
Tried to Install Log.io on a Fedora 17, the same exacts problems...

Install was horrible...

missing packages : nodejs-devel  gcc node-waf
Problem with the node_path variable
Have to set strict-SSL FALSE
have to install npm forever (why this is not automatically installed with log.io ??)
Have to use "log.io server start logio" and not "log.io server start" as described in the doc !!


1 hour to install Log.io and same behaviour on Fedora 17 : unable to set multiples logs files, nothing in the logs...

Either Log.io still need a lot of improvements, or designed for mega Linux Guru's :-(

Thanks for your support.

Foxinou

unread,
Aug 23, 2012, 11:08:12 AM8/23/12
to lo...@googlegroups.com

Hi there, its me again !

My bad for the multiple log files : i just missed the commas ! (,) at the end of the lines :



  // Watch the following log files, defined by label:path mappings
  log_file_paths: {
                logio_harvester : '/var/log/log.io/harvester.log',
                Auth_logs : "/var/log/auth.log",
                Sys_logs : '/var/log/syslog',
                  },

So it seems to be working ! (still dont have any logs...)

Mike Smathers

unread,
Aug 23, 2012, 11:34:11 AM8/23/12
to lo...@googlegroups.com
I just tried installing Log.io based on the build recipe, and had no problems:


There does seem to be a problem with Forever not writing harvester logs to /var/log/log.io/harvester.log, so you'll have to add other log files to see anything appear in the browser (which it looks like you have).  I tried adding a file to harvester.conf and then manually concatenating text to it, and they appeared instantly (echo "oh hai" >> myfile.log)

We've also only tested Log.io on Ubuntu, so I'm not sure if you may be having some Fedora-related issues.

Bon chance!
Reply all
Reply to author
Forward
0 new messages