Questions tagged [logfile]

A log file is a file that contains a list of events, which have been "logged" by a computer.

A log file is a file that contains a list of events, which have been "logged" by a computer. Log files are often generated during software installations and are created by Web servers, but they can be used for many other purposes as well. Most log files are saved in a plain text format, which minimizes their file size and allows them to be viewed in a basic text editor.

701 questions
1
vote
0 answers

Call a function when console window is closed with "X"

I'm having a problem with my console application in which I create a logfile to store different errors that occured while the programm was executed. I'm writing all my error messages into a string buffer (a stringstream) and I'm passing a pointer of…
Pete Hilde
  • 659
  • 1
  • 10
  • 24
1
vote
1 answer

Fetch the particular columns in Postfix /var/log/maillog

I'm using Postfix in my local.I'm writing a script to fetch the deferred/bounced mail report for daily basis.If I'm correct,usually logs are printed like columns in log file. My proposal is I want to grep the previous day's "to","status","said" and…
Narasimman
  • 11
  • 3
1
vote
1 answer

How can i generate snort log file in a text human readable format?

When i use this command: snort -l /home/username/snort-2.9.9.0/snort_logs -d OR : snort -l /home/username/snort-2.9.9.0/snort_logs -b It log packets in Ascii file format, I want the log files in a text readable format. What command should i use to…
Dalya
  • 374
  • 1
  • 3
  • 15
1
vote
0 answers

How can I send Snort Log Files to hadoop Mapreduce automatically?

I want to send Snort Log Files to hadoop Mapreduce automatically, Is there specific tool I should use ? Does Apache Flume perform this job ?
Dalya
  • 374
  • 1
  • 3
  • 15
1
vote
2 answers

Logon, logoff script analysing using PowerShell

I'll first explain what I'm trying to achieve. For a project they want to monitor the pilot group of PCs. And they want the following information: Total unique users that logged on Total log on Time of each session per user So I went ahead and…
Sander
  • 21
  • 2
1
vote
1 answer

How to monitor a logfile that seems to be open all the time (much like notepad++ does)?

I'm trying to build a small program to monitor my pfirewall.log, but I can't seem to open it. I found quite many (simple) answers, that all kinda say // use FilesystemWatcher // open FileStream // read from last position to end // output new…
Squirrelkiller
  • 2,575
  • 1
  • 22
  • 41
1
vote
1 answer

Python tail -f of log file continuously

I implemented python tail -f with following code snippet which works completely fine as my program run continually in background by python myprogram.py & def follow(thefile): thefile.seek(0,2) while True: line = thefile.readline() …
Bibesh
  • 11
  • 4
1
vote
1 answer

RegEx for use with fail2ban on nginx with wordpress and custom log format

I need to block certain requests with fail2ban based on a custom logfile-format for an nginx webserver access.log. The offending lines which should match are in access.log and look like this: 06/Oct/2016:18:44:29 +0200 191.96.249.53 - -…
N. De
  • 21
  • 2
1
vote
2 answers

How to make R foreach threads write to same log file

I have a number of lengthy jobs that I want to parallelize with foreach-dopar so that each thread works on a job independent of others. I want to track the status of each thread (some may fail while others succeed) by writing to a log file using…
horaceT
  • 621
  • 13
  • 26
1
vote
1 answer

Gulp RSync - Save progress to log file

I've been using gulp-rsync for deploying static assets to my server via gulp task. And I use incremental option to determine whether a file needs to be updated or not. This works fine :) I need save the progress displayed in the console in a file…
WhoAmI
  • 50
  • 1
  • 4
1
vote
1 answer

I dont understand apache access log file

there are a apache log file example. But I didn't understand which one is status code, and other strings in the response: 64.242.88.10 - - [07/Mar/2004:16:05:49 -0800] "GET…
1
vote
1 answer

how to reset file parse in Logstash?

Many questions have been seen here in Stackoverflow on the similar subject like this question. But none of them helped to reset Logstash. I've used: input { file { path => ["/var/log/nginx/access.log"] start_position => "beginning" …
Alireza
  • 6,497
  • 13
  • 59
  • 132
1
vote
2 answers

Oracle Stored Procedure Log File

I have a oracle procedure which selects data and insert into another table. Bellow is the code. CREATE OR REPLACE PROCEDURE "CUSTOMER_INCREMENTAL" ( IS BEGIN INSERT INTO NDB_AML_CUSTOMER (ID, TITLE,...) SELECT ID, TITLE,... …
DeE DEe
  • 343
  • 1
  • 6
  • 15
1
vote
1 answer

shell how to direct all message to file while keeping a handful to screen

echo start commanda output=$(commanda soemthing) echo $output echo start commandb output=$(commandb something) echo $output` How do i do it in shell such that i keep: echo start commanda echo start commandb in stdout, while keeping: echo start…
y17chen
  • 57
  • 8
1
vote
1 answer

Logstash Squid date invalid format

I am running ELK Stack on a server where I integrate Squid access.log file (combined format to also get the user-agent). It shows all logs properly in Kibana and my logstash.stdout file shows the entries correctly: { "message" => "192.168.2.26 -…
Sebastien Damaye
  • 385
  • 2
  • 15