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
2 answers

Get a list of unique sender(from=) domains in postfix maillog

I am currenlty trying to extract all the sender domains from maillog. I am able to do some of that with the below command but the output is not quite what I desired. What would be the best approach to retrieve a unique list of sender domain from…
MaryCoding
  • 624
  • 1
  • 9
  • 31
1
vote
3 answers

Can I sort with context in bash?

When I want to merge log files, I often use cat logA.log logB.log | sort. As long as the log lines start with some timestamp-like string in a common format, that's fine. But can I somehow sort the lines and keep lines that do(n't) follow a certain…
Bowi
  • 1,378
  • 19
  • 33
1
vote
1 answer

Process getting stuck (in windows) while child and parent are writing to the same log file in Perl

When doing fork() using Perl, a child process created and parent process are writing to the same log file, and because of this, the script is getting stuck in windows. I want child process to write in a different log file, and parent process to…
AskQuestionsP
  • 153
  • 1
  • 9
1
vote
1 answer

Running String Command to Install Python from Java (Windows)

Consider the following String command: C:\TS\Veit\Test\python\Python-3.6.9\python.exe -m pip install -r C:\TS\Veit\Test\python\packages\requirements.txt --find-links --no-index > C:\TS\Veit\Test\python\logs\python.log 2>&1 This command install…
Jesse James
  • 1,203
  • 5
  • 22
  • 39
1
vote
1 answer

How to rename the 'fit.log' in Gnuplot?

I was looking for a function in gnuplot to set the name of the file with the fit data. The file 'fit.log'. I know there is something about "set fit logfile 'myfit.log'" but i am not able to set the name of the file.. It always create the file…
1
vote
1 answer

Python Flask logging to multiple files

I have a flask application, which calls 2 functions from 2 different files. I've setup logging to 2 different files. However, the logging always seems to append to one file (whatever end point is hit first) Here is the structure of the files…
Shine
  • 83
  • 10
1
vote
0 answers

FileLog monitoring using python at a particular time period

I want to monitor a logfile on server between 6 to 6:15 time period and need to check if a particular string is present or not in the logfile between that time. I want to hard-code it in my script.IF the string is not present I want to send an email…
1
vote
0 answers

Dedupe library in python - problem with log file

I got some issues with creating a log file using dedupe: this is the syntax I use to create the log file: import datetime import sys global log_log_file def writeErrorLogMessage(message): execution_log_line=str(datetime.datetime.now())+', -…
1
vote
1 answer

Simply execute a lsp file and get a log file

For a project I need the output of a Lisp program, however I have never heard of Lisp before and I cannot make it run. I have downloaded the file (.lsp) from a website and looked at it with a texteditor to understand its logic. The lisp file gets a…
PyCod1297
  • 37
  • 5
1
vote
1 answer

Apache Zeppelin will not start

Newbie here, please be gentle. The computer in question uses Windows 10 and Apache Zeppelin(zeppelin-0.9.0-bin-all.tgz) refuses to start. I've tried removing .template from the config files and still nothing. It doesn't pass the line: INFO…
Cookie
  • 11
  • 2
1
vote
1 answer

batch script read last two lines of log file

I want to read last two lines of log file, below code is printing all the lines @echo on setlocal EnableDelayedExpansion for /f "delims=" %%x in (C:\FICO\test_script\retcodeStartClientKYC.txt) do ( set "previous=!last!" set "last=%%x" ) echo…
Yogesh A
  • 11
  • 1
1
vote
1 answer

SpringBoot Actuator logfile endpoint returns 404

Calling GET /actuator/logfile returns 404 error. How can i get log via actuator/logfile? $ curl -XGET localhost:8001/actuator/logfile -i HTTP/1.1 404 Content-Length: 0 Date: Tue, 22 Sep 2020 08:43:44 GMT I have the configuration below. I launched…
1
vote
1 answer

How to parse a log file and calculate the total time spent?

If the log file was just like any other log file it is easy to parse. But now I have 5 log files containing data such as : Time Log: 2/23/12: 9:10pm - 11:40pm getting familiar with Flash 2/29/12: 12:50pm - 2:00pm getting familiar with Flash 3/1/12:…
Simran Munot
  • 87
  • 1
  • 2
  • 10
1
vote
2 answers

PowerShell Logging (verbose)

I want to log my PowerShell scripts. Now I have discovered the Verbose paramteter for myself. The script currently looks like this (sample script): try { New-Item "D:\Test.txt" -ItemType "File" -ErrorAction Stop -Verbose } catch { Write-Host…
Alex
  • 125
  • 2
  • 12
1
vote
1 answer

Limit logfile size for existing containers in Docker

I'm new to docker and didn't know that the logfile size is unlimited. Now I have 2 containers running which I want to keep, but limit the size of their logfiles (which are larger than 40GB currently). Is this possible for existing containers, since…
Michael Hecht
  • 2,093
  • 6
  • 25
  • 37