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

How can I prevent log growth in SQL Server when update millions of records, not insert

I have an update query in SQL Server that needs to update 50 million records, but when I execute this query, my database log file grows to 100GB and stops because of disk full. How can I prevent log file from growing?
mghj
  • 27
  • 8
-1
votes
1 answer

Using tail with if and then statements

Trying (In theory) to tail a log file, of the last two lines (-n 2), then proceed using if/then statements. This of course, would be a script that would be called from the launchctl .plist. Basically it looks like this in my head, although it's not…
James Dean
  • 155
  • 1
  • 17
-1
votes
2 answers

Unable to write a method in Java to find a list of unique IP address from a text file?

LogEntry [date=2010-03-24, time=07:24:28, siteName=ZZZZC941948879, computerName=RUFFLES, sIpAddress=GET, csMethod=222.222.222.222, csUriStem=/img/bg-top.jpg, csUriQuery=-, sPort=80, csUsername=-, csIpAddress=207.49.55.29, csVersion=HTTP/1.1,…
-1
votes
1 answer

creating custom php error log file

Is there multiple error logs within a apache? meaning is there a php log, an apache log etc? As through research I've seen error log paths extend into the document root with the file type of file or through many folder such as /var/tmp/my-errors.log…
Jack Trowbridge
  • 3,175
  • 9
  • 32
  • 56
-1
votes
1 answer

See error log for more details. (Packaing version to iOS)

When I am trying to compile current version of my app using Flash Builder 4.5, I get error which says: Some classes used in the application could not be resolved for packaging. See error log for more details. Where do you see this log and what can…
-2
votes
1 answer

read logging file in java and adding glue

My src code is generating a log file. My BDD scenario no 10 is asserting whether a log message " ERROR Error handling a request:" is present for file X. Now this log message can be generated for other files as well from scenario that run previously…
aron
  • 17
  • 1
  • 4
-2
votes
1 answer

How to create log file and save all the running logs from Python script

I have below part of Python code extraction.py where i have lot of print statements and there are other logs generated from REST API. I want to create logfile with date and time prefix attached with the log file for example log_yyyy-MM-dd-hhminss to…
Symonds
  • 184
  • 1
  • 2
  • 15
-2
votes
2 answers

Node.js console.log() in txt file with date and hour

I want to write into a txt file all the logs of my nodeJs program. I'm using node script-file.js >log-file.txt, but it overwrites the same txt file every time it runs. Is there a parameter to add so that the title of the generated log-file.txt…
Yacine P
  • 21
  • 4
-2
votes
1 answer

Are log files safe to delete?

My primary partition is running out of storage so I scanned my system for files larger than 50MBs using, sudo find / -type f -size +50M -exec du -h {} \; | sort -n and I got 3.4G /var/log/user.log 3.5G /var/log/messages 3.8G …
Mike Mwanje
  • 63
  • 1
  • 13
-2
votes
1 answer

Read block of lines in text file

I am writing a program to read a log file. each entry starts with a time-stamp, except when there is an error, which in this case, I would have multiple lines for the error message and without time-stamp. The file looks like this: 20190207…
-2
votes
1 answer

parsing a log file and extract powershell

i have this in a log file, and i want only the time without (s) in a new log file or put in variable, thanks for your reponse. Fri Nov 02 13:47:07 2018 time =5.803s Fri Nov 02 14:02:10 2018 time =7.082s My Code Get-Content "logfile.txt" | …
jack
  • 67
  • 9
-2
votes
2 answers

Create a log file in PHP

So, I have an application in PHP that register users and items and then I can "give" an item to a user, and what I want it to create a log file that register the 'life cycle' of an item. eg: I create an item and give that item to the user 'Mike', a…
Missing No
  • 3
  • 1
  • 5
-2
votes
2 answers

how to read a particular string from the log file inside a perl script

sample log, 2016-03-29 10:57:28 UTC 642 [31871] INFO node information: {"datacenter": "TEST-DC", "infraType": "saas", "service": "fusion", "extraInfo": {"systemType": "secondary-ha1", "tenantType": "sales", "tenantName": "sale1"} I want to…
akbharath
  • 3
  • 5
-2
votes
1 answer

JVM Crash - Windows 10 - Need help to understand the log file

I upgraded my SO to Windows 10 few weeks ago. After this my jvm keep crashing when im on netbeans. Crash Log Need some guidance.
-2
votes
2 answers

SQL Server 2012 with large log file, what choice to take?

i have a windows application that connects with a SQL Server 2012 database. This database is huge and yesterday, all the query's of the application give time out and we found that the log file was in the max size that was configured. So we change…
Phoenix_uy
  • 3,173
  • 9
  • 53
  • 100
1 2 3
46
47