grok doesn't restart cleanly

8 views
Skip to first unread message

isabel

unread,
Nov 24, 2008, 6:13:31 AM11/24/08
to grok-users
hi everyone!

i hope someone is still reading posts from this group
i just would like to ask what happened with the issues in restarting
grok post?
did you find a solution to that problem?
i'm also having the same problem

every time i would restart grok, the tail processes created by grok
before are not being killed or won't die
you would need to kill the process manually
i can just create a script to kill it manually but do you have other
solutions for it?

thank you very much!
hope someone read my post and would be able to give an answer.

thanks again.
-isabel

Jez Hancock

unread,
Nov 24, 2008, 12:20:22 PM11/24/08
to grok-...@googlegroups.com
On Mon, Nov 24, 2008 at 11:13 AM, isabel <isabel....@gmail.com> wrote:
> i just would like to ask what happened with the issues in restarting
> grok post?
> did you find a solution to that problem?
> i'm also having the same problem

I will attach the script that I wrote to do a variety of grok control
jobs - most of which are very specific to my setup so probably not
useful but hopefully you can whittle it down to just the bit that
controls the starting/stopping/restarting of grok. Note the script
works / was written for FreeBSD 6.3.

--
Jez Hancock
- System Administrator / PHP Developer

http://freebsd.munk.me.uk/ - A FreeBSD Admin Weblog
http://ipfwstats.sf.net/ - ipfw peruser traffic logging

grok_pf.pl

j...@semicomplete.com

unread,
Nov 24, 2008, 4:57:36 PM11/24/08
to grok-users


On Nov 24, 9:20 am, "Jez Hancock" <jez.hanc...@gmail.com> wrote:
> On Mon, Nov 24, 2008 at 11:13 AM, isabel <isabel.rapi...@gmail.com> wrote:
> > i just would like to ask what happened with the issues in restarting
> > grok post?
> > did you find a solution to that problem?
> > i'm also having the same problem
>
> I will attach the script that I wrote to do a variety of grok control
> jobs - most of which are very specific to my setup so probably not
> useful but hopefully you can whittle it down to just the bit that
> controls the starting/stopping/restarting of grok.  Note the script
> works / was written for FreeBSD 6.3.
>
> --

I think I forgot to reply to the list for this...

You can probably use "tail -F" in an exec statement to achieve the log-
rotate-following feature.

exec "tail -F /var/log/foo.log" { }

-F makes it follow the name, so if the file is rotated it'll see the
new file.

-Jordan

isabel

unread,
Nov 24, 2008, 9:47:14 PM11/24/08
to grok-users
@Jez Hancock: Hi! Thanks for your quick response. Perfect! I'm also
using FreeBSD. Thanks also for the script. I'll try it out! =)

@Jordan: Hi again! I'll try the tail -F command too. Thanks! =)
Reply all
Reply to author
Forward
0 new messages