Displaying 20 results from an estimated 30 matches for "logfilenam".
Did you mean:
logfilename
2018 Nov 08
1
[nbdkit PATCH] log: Allow user option of appending to log
...2079084..e6ed3b4 100644
--- a/filters/log/log.c
+++ b/filters/log/log.c
@@ -43,6 +43,7 @@
#include <pthread.h>
#include <sys/time.h>
#include <assert.h>
+#include <stdbool.h>
#include <nbdkit-filter.h>
@@ -51,6 +52,7 @@
static uint64_t connections;
static char *logfilename;
static FILE *logfile;
+static bool append;
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
static void
@@ -75,6 +77,10 @@ log_config (nbdkit_next_config *next, void *nxdata,
}
return 0;
}
+ if (strcmp (key, "logappend") == 0) {
+ append = value[0] &&...
2018 Nov 08
0
[nbdkit PATCH v2 5/5] log: Allow user option of appending to log
...logappend> parameter
+was specified with a value that can be parsed as a boolean true.
=head1 EXAMPLES
diff --git a/filters/log/log.c b/filters/log/log.c
index 2079084..a497e9e 100644
--- a/filters/log/log.c
+++ b/filters/log/log.c
@@ -51,6 +51,7 @@
static uint64_t connections;
static char *logfilename;
static FILE *logfile;
+static int append;
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
static void
@@ -75,6 +76,12 @@ log_config (nbdkit_next_config *next, void *nxdata,
}
return 0;
}
+ if (strcmp (key, "logappend") == 0) {
+ append = nbdkit_parse_bool (...
2018 Jan 28
0
[nbdkit PATCH 2/2] filters: Add log filter
...#include <stdarg.h>
+#include <errno.h>
+#include <inttypes.h>
+#include <pthread.h>
+#include <sys/time.h>
+#include <assert.h>
+
+#include <nbdkit-filter.h>
+
+#define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL
+
+static uint64_t connections;
+static char *logfilename;
+static FILE *logfile;
+static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
+
+static void
+log_unload (void)
+{
+ if (logfilename)
+ fclose (logfile);
+ free (logfilename);
+}
+
+/* Called for each key=value passed on the command line. */
+static int
+log_config (nbdkit_next_config *ne...
2024 Aug 30
1
geo-rep will not initialize
...not replicated into /gluster/n.
> Also, check with the following command (found it in
> https://access.redhat.com/solutions/2616791 )
> <https://access.redhat.com/solutions/2616791>:
> |sh -x /usr/libexec/glusterfs/gverify.sh masterVol slaveUser slaveHost
> slaveVol sshPort logFileName|
That must be the wrong URL, "libexec" doesn't appear there.
However, running it with locally-appropriate args:
/usr/libexec/glusterfs/gverify.sh j geoacct pms n 6427 /tmp/verify.log
...generates a great deal of regular logging output, logs nothing in
/tmp/verify.log, but the shell...
2010 Apr 16
1
Logserver recommendations
Hi
I am using rsyslog to get logs to a central box and they are stored in the
format of
/<hostname>/<year>/<month>/<day>/<logfilename>
I need a solution that can trawl through these directories and pick up
exceptions like failed logons and sudo usage that sort of thing.
Has anyone got any clues as to what might help to achieve this, i am looking
into logsurfer but not sure if this handles the directory structure nicely.
th...
2009 Jul 23
0
Rails Logger::Shifting Problem
I ve run my rails project by creating 3 instance using mongrel cluster
mongrel_rails cluster::configure -p 8000 -n 3
now my project running three consequent ports like 8000,8001,8002
ports
i am using rails version --->2.1.1
on the first day no problem in creating logfilename.log for running
all 3 ports.
Problem is ,
on next day when application is running in 1st instance its creating a
backup of logfilename.log as file_previous_date.log when same rails
project running at the 2nd instance (port 8001) on the that day.
The following error occurred ,...
2013 Jun 25
1
Perplexed with environment
...39;t this has anything to do with
it, but I am not sure.
I am writing a small logger package, in which I have a file
aaa.R:
,----
| .logData <- new.env()
| assign("loggingThreshold", 10, envir = .logData)
| assign("logToFile", FALSE, envir = .logData)
| assign("logFileName", NULL, envir = .logData)
|
| assign("logToConsole", TRUE, envir = .logData)
| ##
| assign("logHeaderLevel", 0, envir = .logData)
| assign("logHeader", "", envir = .logData)
| assign("logHeaderClock", "", envir = .logData)...
2018 Jan 28
3
[nbdkit PATCH 0/2] RFC: tweak error handling, add log filter
Here's what I'm currently playing with; I'm not ready to commit
anything until I rebase my FUA work on top of this, as I only
want to break filter ABI once between releases.
Eric Blake (2):
backend: Rework internal/filter error return semantics
filters: Add log filter
TODO | 2 -
docs/nbdkit-filter.pod | 84 +++++++--
docs/nbdkit.pod
2007 Oct 18
0
[PATCH] Use a control socket directory to restrict access
...+ b/src/tincd.c
@@ -218,7 +218,7 @@ static void make_names(void)
#endif
if(!controlsocketname)
- asprintf(&controlsocketname, LOCALSTATEDIR "/run/%s.control", identname);
+ asprintf(&controlsocketname, "%s/run/%s.control/socket", LOCALSTATEDIR, identname);
if(!logfilename)
asprintf(&logfilename, LOCALSTATEDIR "/log/%s.log", identname);
--
1.5.3.4.395.g85b0
--------------030901060304060800070308--
2019 Jul 31
13
[nbdkit PATCH 0/8] fd leak safety
There's enough here to need a review; some of it probably needs
backporting to stable-1.12.
This probably breaks tests on Haiku or other platforms that have not
been as on-the-ball about atomic CLOEXEC; feel free to report issues
that arise, and I'll help come up with workarounds (even if we end up
leaving a rare fd leak on less-capable systems).
Meanwhile, I'm still working on my
2019 Jan 03
1
--link-dest. Time to 'building file list' incrementing
...but I soon noticed that the time take to complete was slowly incrementing. It started at around three hours, but is now around fifteen.
The command is as follows...
rsync -rlptDhPR \
--password-file=password \
--Chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r \
--Stats \
--delete \
--log-file=logfilename \
--link-dest=linkdestpath \
sourceDirectory \
rsync at 192.168.1.2::destinationDirectory
I'm not using the full -a option as the differences between the Windows and Linux ownership stuff messed things up.
The first log file looked like this...
2018/10/01 23:00:14 [2164] buildin...
2018 Nov 08
8
[nbdkit PATCH v2 0/5] log appends
v2 turned out to be much more involved, as I ended up fixing
several things along the way that I noticed while debugging a
feature addition.
Eric Blake (5):
maint: Improve ./nbdkit option parsing
main: Saner newline printing during --help
utils: Add nbdkit_parse_bool
main: Use new bool parser for --tls
log: Allow user option of appending to log
docs/nbdkit-plugin.pod | 11
2001 Dec 18
0
ssh: limits on authorized_keys2 (fwd)
...eful clue. Files in the attached tarball:
auth.log-cabrio - server /var/log/auth.log
log_auth2cabrio.1stposn - failed ssh login, logged via:
ssh -v -v -v -4 cabrio 2> log_auth2cabrio.1stposn
log_auth2cabrio.4thposn - successful ssh login, same command line,
except for logfilename and ordering of pubkeys in
cabrio:/home/arnim/.ssh/authorized_keys2
ssh_config-fox - client /etc/ssh/ssh_config
sshd_config-cabrio - server /etc/ssh/sshd_config
Note that this example is done between a RedHat client and a Debian
server, but I have seen the same fault with an OBSD 3.0...
2007 Feb 06
1
audit module
hey,
i need to know who deleted files on our server so i added the audit module. but now i cant find any hint in the log file which user deleted the file. it just shows me "Feb 6 13:54:57 smb.-server smbd_audit[13881]: opendir .recycle". How can i do that?
another question is: how can i tell samba to keep more versions of the log files? Now it only keeps a client.log and a
2019 Jan 08
2
--link-dest. Time to 'building file list' incrementing
...> >
> > > The command is as follows...
> > >
> > > rsync -rlptDhPR \
> > > --password-file=password \
> > > --Chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r \
> > > --Stats \
> > > --delete \
> > > --log-file=logfilename \
> > > --link-dest=linkdestpath \
> > > sourceDirectory \
> > > rsync at 192.168.1.2::destinationDirectory
> > >
> > > I'm not using the full -a option as the differences between the Windows and Linux ownership stuff messed things...
2023 Feb 14
1
failed to close Bad file descriptor on file creation after using setfattr to test latency?
...unted on the remote clients. Granted some of those folders have
thousands of small files... That led me down the setfattr path testing
latency.
Reads/writes on that directory yesterday evening after the setfattr was set
was fine(albeit slightly slow) and I got a latency report in
/var/run/gluster/logfilename.
I figured we can work out the latency issues, but the problem
encountered this morning is that I now cannot create a file via touch, dd,
vi etc... on that same mount point without the following errors. This
happens now with a client in both the same location as the gluster and a
remote client....
2024 Sep 01
1
geo-rep will not initialize
...e was nothing to do. But yes, there are a few files created
after the geo-rep session was created. And status remains just "Created."
> Can you share the output of your version of? 'sh -x
> /usr/libexec/glusterfs/gverify.sh masterVol slaveUser slaveHost
> slaveVol sshPort logFileName' check ?
sh -x /usr/libexec/glusterfs/gverify.sh j geoacct pms n 7887 /tmp/logger
+ BUFFER_SIZE=104857600
+ SSH_PORT=7887
++ gluster --print-logdir
+ primary_log_file=/var/log/glusterfs/geo-replication/gverify-primarymnt.log
++ gluster --print-logdir
+
secondary_log_file=/var/log/glusterfs/g...
2018 Feb 01
6
[nbdkit PATCH v2 0/3] add log, blocksize filters
Since v1: add the blocksize filter, add testsuite coverage of the
log filter, several fixes to the log filter based on what adding
tests revealed
I'm still working on FUA flag support patches on top of this;
the patches should all be committed in the same release, as we
want to minimize the number of releases that cause a filter
ABI/API bump
Eric Blake (3):
backend: Rework internal/filter
2019 Jan 04
0
--link-dest. Time to 'building file list' incrementing
...hree hours, but is now around fifteen.
> >
> > The command is as follows...
> >
> > rsync -rlptDhPR \
> > --password-file=password \
> > --Chmod=Du=rwx,Dgo=rx,Fu=rw,Fgo=r \
> > --Stats \
> > --delete \
> > --log-file=logfilename \
> > --link-dest=linkdestpath \
> > sourceDirectory \
> > rsync at 192.168.1.2::destinationDirectory
> >
> > I'm not using the full -a option as the differences between the Windows and Linux ownership stuff messed things up.
> >
> >...
2009 Sep 23
2
reading web log file into R
If I have a web log file?as follows:
#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2007-12-03 13:50:17
#Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem
cs-uri-query sc-status sc-bytes cs-bytes time-taken cs(User-Agent)
cs(Cookie) cs(Referer)
"2007-12-03 13:50:17 200.40.203.197 - 200.40.51.20 80 GET
/localidades/img/nada.gif - 200 328 447 0