-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Real-time logfile monitoring #198
Comments
It is called column split=; I just noticed my blog is wrong (though separator sounds better I think)... |
Thanks Michael, Looking forward to the fix. Is there a way to not use a separator and just consider each line as one column? I'm just trying to alert if a new logline contains 'ERROR'. It would theoretically not be necessary to split the log into multiple columns for this particular case. |
there is a line you can use as well and substring match that (or regexp) |
BTW cant upload from #osmc (netowkr issues) so wont be a fix till i get hiome... |
No problem Michael. i'm not really sure what you mean with
Do you mean this:
|
yes thats what I mean... not 100% sure it is called line but that should be in the docs... |
Michael, I have tried to get this working on the latest stable release 0.4.4.12 as wel as 0.4.1.105, but have not been able to get it working. It doesn't even seem to notice any changes on 0.4.4.12.. My C:\Logtest.txt looks like this:
And i'm populating it with
These are the relevant parts of the nsclient.ini on 0.4.4.12:
As you can see I tested with line and column but neither seem to be working on 0.4.4.12. Let me know if you notice anything missing in my config. I have been searching through your documentation at examples but couldn't find any. |
Two things. 1, using c:\ is not a good idea. 2, there was an issue when the file did not exist on startup which will be fixed in the next build. My slightly modified (working) config:
What I get in out.txt is the following:
When I get back from OSMC (sunday) I will push a build which fixes the file is missing on start. |
Hmm at home atm where I can't get this to work on 0.5.0.9..
nscp test does't even seem to notice file changes. I'll test again next release. It's like checklogfile is't even started. Could you please specify the version you used to test this and your complete nsclient.ini? There must be something different if it works for you.... |
I am using an unreleased build based of master so there could be changes (did numerous fixes for the workshop at OSMC). This build will be out as soon as I get back home. The config I posted above is the full one I used... |
Hello,
Is there a way to not use a separator or split in a real-time logfile check
I have some logfiles with variable structured data and would like to just
Tried omitting column separator but that doesn't work. Also notices that a space as separtor also doesn't work.
Any tips to achive the above?
The text was updated successfully, but these errors were encountered: