Did you restart the server to reload the corrected PHP or JavaScript code?
Yes I did...
Did you restart the server to reload the corrected PHP or JavaScript code?
Yes I did...
I'm a bit confused because PHP manual https://www.php.net/manual/de/datetime.format.php
says:
u | Microseconds. Note that date() will always generate 000000 since it takes an int parameter, whereas DateTime::format() does support microseconds if DateTime was created with microseconds. | Example: 654321 |
v | Milliseconds. Same note applies as for u . | Example: 654 |
but the definition is in a JavaScript modul.
Best approach to troubleshoot would be to publish the source code in a github repository
Hi,
Thanks for your help. I have exactly the same questions !
Sources can be found here
RE: [solved] Add additional LOG File to the WEB GUI
There is only 2 files to copy/paste and a test file to test the feature. Maybe your can try ?
Cheers
OK, I'm trying something else :
"regex" => "^(\S+\s+\S+)[.]\S+\s+(.*)$" (don't take the milliseconds in the first parsed group)
and
return strpdate($v,"Y-m-d H:i:s"); (idem)
Should work after a reboot... but this time, got nothing in the web page!
How can I test that without rebooting my NAS every time I need to test the engined and/or the webUI ?
Hi guys, i tried to add a custom log,
i have a openmediavault version 6.7.1-2 (Shaitan)
i create the php script inside /usr/share/openmediavault/engined/inc
<?php
require_once("openmediavault/functions.inc");
\OMV\System\LogFileSpec::registerSpecification("samba", [
"filename" => "log.audit",
"filepath" => "/var/log/samba/log.audit",
"regex" => "/(\S+\s+\d+\s+\S+)\s+(\S+)\s+smbd_audit: (.*)\|(\d+.\d+.\d+.\d+)\|(mkdirat|unlinkat|renameat|fdopendir|file\|create)(\S+)/",
"columns" => [
"ts" => [
"index" => 1,
"func" => function($v) { return strpdate($v,"D M j H:i:s Y"); }
],
"date" => [
"index" => 1,
"func" => function($v) {
return strftime("%c", strpdate($v,"D M j H:i:s Y"));
}
],
"service" => 2,
"user" => 3,
"address" => 4,
"action" => 5,
"message" => 6
]]);
but i can't found the javascript files where i can found them?
but i can't found the javascript files where i can found them?
You may have a look here and use the NUT plugin as a template.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!