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

Pyparsing Forward() Grammar Recursion

I'm using Pyparsing to parse a log file which has blocks that look like this: keyName0: foo keyName1: bar msgKey [Read]: 21 FA 00 34 msgKey…
Giuseppe Cianci
  • 407
  • 3
  • 9
2
votes
1 answer

Get log file of a job id from travis CI

How can i download the log file of build from a job id and project name. I knew that there is API from travis ci. Project name : eclipse/jetty.project Job id : 6073028 Link to access to the log file :…
Amine Barrak
  • 139
  • 9
2
votes
2 answers

SQLCMD command, How to save output into log file

The following question has helped me solving the problem of executing multiple SQL Scripts located in file. Run all SQL files in a directory However, I did not get how to redirect the output into a separate log file. Someone suggested the following…
dolly_do
  • 97
  • 3
  • 3
  • 15
2
votes
1 answer

How can I control log level of plain-text debug files in robot framework?

I have read this documentation which explains how to create plain-text log files during execution. As it says it is a Debug File and All messages got from test libraries are written to them; but I'm looking for a way to control the log level of its…
Zeinab Abbasimazar
  • 9,835
  • 23
  • 82
  • 131
2
votes
2 answers

Error log with a counter

I have a c# project and a log file with errors. I want to give all errors on a new log file out with a counter if there are some errors twice or more. I used the command: bool alreadyExist = fails.Contains(line); This works really good, but I want…
Mister
  • 25
  • 6
2
votes
1 answer

PHP: log errors in file but don't display them to POST/GET requests

I want to log all PHP errors into a log-file, but I don't want to display them to the user. I use the following configuration in php.ini track_errors=On error_reporting = E_ALL log_errors=On display_errors = Off error_log =…
John Brunner
  • 2,842
  • 11
  • 44
  • 85
2
votes
1 answer

Python - Find a specific mac address in a log file

I want to extract specific Mac Address from a log file that can appear in different formats. For example, on these three lines: Jun 16 10:24:28 (2248) Login OK: cli 88-c9-d0-fd-13-65 via TLS tunnel) Jun 16 10:24:35 (2258) Login OK: cli…
bonzix
  • 45
  • 5
2
votes
2 answers

Extracting data from lines of log file in python

I need to extract time(02/Jan/2015:08:12), article_id, and user_id line format looks like this: 67.15.143.7 - - [02/Jan/2015:08:12] "GET/click?article_id=25&user_id=104 HTTP/1.1" 200 2327 67.15.143.7 - - [02/Jan/2015:08:12]…
Ryueisan
  • 31
  • 2
2
votes
1 answer

Incremental backup with rollforward logs: How to get the logs with MySQL commands?

I have a MySQL database with activated binary logging (i.e. rollforward logs). The logs are located (by default) in /var/log/mysql which is accessible by the users mysql and root only. I make (full) backups every Sunday with a cronjob like…
PerlDuck
  • 5,610
  • 3
  • 20
  • 39
2
votes
0 answers

zipfile - extract method executes without error but file is not extracted

I have a very simple zipfile implementation in python which succeeds at extracting from certain zip files but fails consistently on other files. When it succeeds (obviously) the code executes and the files are extracted from the zip. When it fails…
10mjg
  • 573
  • 1
  • 6
  • 18
2
votes
1 answer

Algorithm to find faster the suitable prefix for each phone number in log file?

There is a csv file including the list of prefixes to categorise the phone numbers base on that. This is an example of prefixes.csv. This file have near to 2000 row. 3511891,PORTUGAL-MOBILE (VODAFONE) 3511693,PORTUGAL-MOBILE…
pm1359
  • 622
  • 1
  • 10
  • 31
2
votes
4 answers

How do I output data between two dates in bash?

I have a file like this: 2014-12-31 531.252429 532.602384 525.802363 526.402397 1368200 526.402397 2014-12-30 528.092396 531.152424 527.132366 530.422394 876300 530.422394 2014-12-29 532.192446 535.482414 530.013375 530.332426 2278500…
Simona
  • 63
  • 1
  • 1
  • 4
2
votes
1 answer

Open a .log extension file in Python

I'm trying to open a .log extension file in Python but I keep encountering an IOError. I'm wondering if this has to do with the extension because clearly, the only way to get into that loop was if 'some.log' existed in the directory. location =…
robinhood91
  • 1,641
  • 3
  • 20
  • 36
2
votes
1 answer

regarding log4view file receiver

I am trying to open old files which are logged long time ago but I am not sure with which logging framework but it does seem like log4net because the files have date, thread and a message basically. Now the problem is log4view receiver cannot view…
Precious
  • 237
  • 2
  • 7
  • 19
2
votes
4 answers

Parsing a large pseudo csv log file in Python

I have several very large not quite csv log files. Given the following conditions: value fields have unescaped newlines and commas, almost anything can be in the value field including '=' each valid line has an unknown number of valid value…
deltap
  • 4,176
  • 7
  • 26
  • 35