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

Cannot download log files through `WebClient.DownloadFile` method in ASP.NET Core

I am using WebClient.DownloadFile() method for downloading files through my Localhost URL. And it is working well for all files except for log files. When I download log files it shows contents as "Not Authorized" Also it occurred to me than when I…
PRABAT
  • 25
  • 6
1
vote
4 answers

How to convert filecontent using powershell

I have a log file with a weird format that I would like to convert to a table. The format is that each line contains multiple keyvalue pairs (same pairs on each row). I want to convert these rows so that each property becomes a column in a table…
Daniel Björk
  • 2,475
  • 1
  • 19
  • 26
1
vote
0 answers

Is it possible to limit the Editor.Log size Unity?

Yesterday my hard disk suddenly said that there is no memory storage left. I have searched a little bit and found out that my Unity Editor.log file was 90GB big. I just deleted it and thats no problem but i wanted to know if there is a way in unity…
At Least Vision
  • 515
  • 5
  • 17
1
vote
0 answers

file_put_contents, file_append How to wrire content DESC

I have drafted a paragraph of text and each mailing log will generate a .log file This is the code I refer to 1 user guide function wh_log($log) { $log_filename = "log"; if (!file_exists($log_filename)) { // create directory/folder…
1
vote
2 answers

How to extract parts of logs based on identification numbers?

I am trying to extract and preprocess log data for a use case. For instance, the log consists of problem numbers with information to each ID underneath. Each element starts…
Audiogott
  • 95
  • 2
  • 12
1
vote
0 answers

Pexpect: unable to write to logfile

Unable to log input/output of a pexpect.spawn instance to log file and sys.stdout. I am writing a function "connect()" to spawn ssh connection to a linux server. From another function get_build(), I am calling connect() function. After…
1
vote
0 answers

How to change Julia logs path?

How can I change path to log files in Julia? I have changed $JULIA_DEPOT_PATH (which is ~/.julia by default) to a custom location, and the external packages are indeed installed into that location. However, log files (history, in particular) are…
S.V
  • 2,149
  • 2
  • 18
  • 41
1
vote
0 answers

How to write logs to a text file with fixed size in C#

My requirement is to write logs to a fixed size text file. I have gone through few articles regarding this but those are looking bit complex for me since I am new to programming. As per my knowledge what I think I can do is write log data to a queue…
1
vote
1 answer

How to get first integer between two specific characters with regex in Python?

I'm parsing some log files and need to extract a integer for a "size" parameter. The string (part of it) looks like this "asdasdasd\\\size\\x22:22\x0A23232d:123123123\x0A2" I want to get the first integer between ":" and "\". That would be 22.…
1
vote
0 answers

Python IP logger taking in, and outputting data in csv format

Hello I'm looking for some help with a project I recently took up to help check pc connectivity in my workplace. I am fairly new to python and programming in general so a large portion of this may be wrong. I'm trying to create a simple IP logger…
1
vote
1 answer

Join multiline message from log file into a single row in R

How is it possible to join multiple lines of a log file into 1 dataframe row? ADDED ONE LINE -- Example 4-line log file: [WARN ][2016-12-16 13:43:10,138][ConfigManagerLoader] - [Low max memory=477102080. Java max memory=1000 MB is recommended for…
user3341592
  • 1,419
  • 1
  • 17
  • 36
1
vote
1 answer

Why do file exist and file size checks not work in combination?

I have a problem with a batch file I am trying to write. Goal: Check if logfile.log exists and if not create it. Otherwise file size should be checked if the file already exists. If the log file size is below a certain amount "do nothing", else copy…
Thomas
  • 13
  • 4
1
vote
0 answers

Display all lines of a log file where number value is greater than or equal to X

I have a log file (encoder.log) where I want to show all lines where the value is greater than or equal to a specific value. Here is an example of a line: 563.456: LDMP: flow #0 state= READY (F) 192.168.1.50 bytes= 82757648 cwnd=158 avg_rtt=…
1
vote
1 answer

Django Celery set individual logfile path for each task

I am trying to execute a fabric function defined in a fabfile as a celery task. Now i need to create a separate log file everytime the task is executed. How can I set the logfile path everytime depending on timestamp. I need to give the link of…
Rohan
  • 1,031
  • 7
  • 10
1
vote
1 answer

Shrink Database Log file for Microsoft Dynamics CRM

I have Microsoft Dynamics CRM 2015 and the database file (.mdf) is around 20 Gb and the Log file (.ldf) is about 550 Gb. I tried shrinking ldf file as discussed in this link However, after the database log file was shrink, CRM stopped working. Can…