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
4
votes
1 answer

What do the square brackets in LaTeX logs mean?

I'm currently working on a parser that reads complete LaTeX logs. Most of the log format is, though weird, easy to figure out, but these square brackets are puzzling me. Here's an example from near the end of one of my logs: Overfull \hbox…
Stefan Majewsky
  • 5,427
  • 2
  • 28
  • 51
4
votes
2 answers

How can I make a log file from a specific application database-file in bash?

I have a specific application database-file like this: •r vbc.vvc lin K$³ñ123456 Œ Œ P P P ;šÉÿ …
4
votes
1 answer

Building indexes for files in Perl

I'm currently new to Perl, and I've stumbled upon a problem : My task is to create a simple way to access a line of a big file in Perl, the fastest way possible. I created a file consisting of 5 million lines with, on each line, the number of the…
Jonathan Taws
  • 1,168
  • 11
  • 24
4
votes
4 answers

mysql-slow-queries visualize

I received a file called mysqld-slow-queries.log from my web-hosting provider. I need to analyze this file, because there are probably some functions which cause a huge load on the server. However, when I open the file with Notepad++ or similar I…
3
votes
3 answers

Perl count log entries per second using a hash of a hash of ararys

Updated: After my initial post and responses, I managed to have another crack and have written out my aims and results a bit clearer: Aim: I'm attempting to count the number of hits in a search string of a log file to figure out how many…
user1039417
  • 109
  • 9
3
votes
1 answer

Where are cargo log messages stored?

When I build a Rust project using cargo build, I get error messages in the terminal. Are these error messages stored in a log file?
David
  • 53
  • 6
3
votes
1 answer

Remove duplicates from a list of custom objects based on two fields

I have two lists of custom objects both are List. The properties inside one are typeOfException, date and stackTrace and the other just contains typeOfException and stackTrace. What I would like to do is to remove duplicate Log entries…
3
votes
4 answers

Trying to parse a log file and create a CVS report with tables in python. The code returns empty tables for some reason

The assignment: Imagine your company uses a server that runs a service called ticky, an internal ticketing system. The service logs events to syslog, both when it runs successfully and when it encounters errors. The service's developers need your…
3
votes
0 answers

Filter nginx log files

I have many nginx access log files and i want to parse these files between two dates. For example i want to parse the log files between 15/Sep/2020 until 15/Oct/2020 and i use this command: zcat /var/log/nginx/mywebsite.access.log.*.gz | awk '$4 >=…
Dante
  • 41
  • 4
3
votes
1 answer

cat displays multi-line file content in a single line

In Linux Shell script, I am trying to trace each command status (either Success or Failure) in a log file. Below is my code snippet to log the entries in a log file. scp $user@$host:$from $to 2>error.txt command_run_status=$? if [[…
PraveenKS
  • 1,145
  • 3
  • 13
  • 28
3
votes
2 answers

Strange referers in Apache logfiles: empty string and what looks like MySQL code

I've read my logfiles into R, and when I look at the referer there are some strange entries: > logs <- read.table("logfile") > referer <- data.frame(table(logs$referer)) > head(referer, 2) Var1 Freq 1 157 2 …
user10736308
3
votes
0 answers

Python logger not writing logs on AWS

I have a web application deployed on AWS elastic beanstalk. To put it simply, I have two different python files that writes logs to the same log file ("implementation.log") scriptA.py logger = logging.getLogger('LGB_Implementation') …
3
votes
1 answer

How to reduce log file size of MS SQL database

How to reduce log file size of MS SQL database. The requirement is to reduce log file of the version control server's DB, Shrinking is not an option in our case.
Sohail
  • 85
  • 2
  • 8
3
votes
4 answers

How to add time stamp to log lines in log file from batch file output?

I want to add time stamp to log lines from batch output. Here is my batch file: @Echo off SET LOGFILE=MyLogFile.log call :Logit >> %LOGFILE% exit /b 0 :Logit set "affix=%date%_%time%" set "affix=%affix::=%" set "affix=%affix:/=%" xcopy…
v1787v
  • 45
  • 1
  • 5
3
votes
2 answers

Editing pyparsing parse results

This is similar to a question I've asked before. I have written a pyparsing grammar logparser for a text file which contains multiple logs. A log documents every function call and every function completion. The underlying process is multithreaded,…
Giuseppe Cianci
  • 407
  • 3
  • 9