12-07-2014
Web Request log
Hey all,
I would like to track what applications are requesting access at the unix level. is there a log or a way to capture all network access requests? Not with applications.
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am writing a series of scripts for work to analyse intranet access logs. All of the scripts do as they should when run individually from the shell, but only when run from certain directories. This sounds like it may be a PATH issue but I am not sure. When I run a certain script, say... (3 Replies)
Discussion started by: mmanders
3 Replies
2. UNIX for Advanced & Expert Users
I'm trying to find a way to show large page sizes (page size in K) from multiple web server log files. Essentially I want to show only rows from a file where a specific column is larger than some value. Has anyone ever done this type of log analysis? If so, a snippet of code would be very... (2 Replies)
Discussion started by: mike_cataldo@ad
2 Replies
3. BSD
Hello,
FreeBSD is not forwarding the request to the Outlook Web Access. Is there some process that needs to be run in order for this to start?
The server was rebuilt and is pingable.
Any suggestion is greatly appreciated.
Thank you,
Gish (1 Reply)
Discussion started by: TESTQWER
1 Replies
4. Web Development
Hi everybody,
I was looking at my apache2 log and I found GET requests as such:
Some ip - - "GET... (4 Replies)
Discussion started by: z1dane
4 Replies
5. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Write a parser for a web server access log that will provide the statistics outlined below. Remember to format your output in a neat form. You may complete this assignment with one Awk script or a shell script using a combination of... (6 Replies)
Discussion started by: codyhazelwood
6 Replies
6. UNIX and Linux Applications
I'm looking for good web log analysis software for 95% Apache / 5% IIS logs. There's a lot out there, but our needs are unusual. We're a web hosting company with a large number of VPS servers. For a variety of reasons, we like to develop models of virtual server activity. Among other things,... (1 Reply)
Discussion started by: treesloth
1 Replies
7. Programming
Please pardon my ignorance, but I need to create a web-based form which can be used to request access to the unix servers in our environment. It just needs to have input fields for basic info (name, dept., etc.), and perhaps a drop-down box with the names of the servers. The form will be submitted... (2 Replies)
Discussion started by: wjssj
2 Replies
8. Linux
Hello all,
I have several vhost and not sure which vhost is serving the requests to my url
http://www.mydomain.tld i have ssh access to the web server
is there a way e.g curl to know exactly which vhost served the request.
one of my friend suggested logs but i want to find another... (4 Replies)
Discussion started by: coolatt
4 Replies
LEARN ABOUT CENTOS
sd_journal_stream_fd
SD_JOURNAL_STREAM_FD(3) sd_journal_stream_fd SD_JOURNAL_STREAM_FD(3)
NAME
sd_journal_stream_fd - Create log stream file descriptor to the journal
SYNOPSIS
#include <systemd/sd-journal.h>
int sd_journal_stream_fd(const char* identifier, int priority, int level_prefix);
DESCRIPTION
sd_journal_stream_fd() may be used to create a log stream file descriptor. Log messages written to this file descriptor as simple
newline-separated text strings are written to the journal. This file descriptor can be used internally by applications or be made
STDOUT/STDERR of other processes executed.
sd_journal_stream_fd() takes a short program identifier string as first argument, which will be written to the journal as
_SYSLOG_IDENTIFIER= field for each log entry (see systemd.journal-fields(7) for more information). The second argument shall be the default
priority level for all messages. The priority level is one of LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO,
LOG_DEBUG, as defined in syslog.h, see syslog(3) for details. The third argument is a boolean: if true kernel-style log priority level
prefixes (such as SD_WARNING) are interpreted, see sd-daemon(3) for more information.
It is recommended that applications log UTF-8 messages only with this API, but this is not enforced.
RETURN VALUE
The call returns a valid write-only file descriptor on success or a negative errno-style error code.
NOTES
The sd_journal_stream_fd() interface is available as a shared library, which can be compiled and linked to with the libsystemd-journal pkg-
config(1) file.
EXAMPLES
Creating a log stream suitable for fprintf(3):
#include <syslog.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <systemd/sd-journal.h>
#include <systemd/sd-daemon.h>
int main(int argc, char *argv[]) {
int fd;
FILE *log;
fd = sd_journal_stream_fd("test", LOG_INFO, 1);
if (fd < 0) {
fprintf(stderr, "Failed to create stream fd: %s
", strerror(-fd));
return 1;
}
log = fdopen(fd, "w");
if (!log) {
fprintf(stderr, "Failed to create file object: %m
");
close(fd);
return 1;
}
fprintf(log, "Hello World!
");
fprintf(log, SD_WARNING "This is a warning!
");
fclose(log);
return 0;
}
SEE ALSO
systemd(1), sd-journal(3), sd-daemon(3), sd_journal_print(3), syslog(3), fprintf(3), systemd.journal-fields(7)
systemd 208 SD_JOURNAL_STREAM_FD(3)