Questions tagged [logfiles]

215 questions
2
votes
2 answers

How to delete the content of a log file using Java code

I need to clear the content of a certain log file in the server which is running Linux. I need to do it by calling a method from my program which is running in a different server. Please help me out. My program is using Java technology, So I need a…
Abhisek
  • 715
  • 3
  • 13
  • 20
2
votes
1 answer

Unable to see the rstudio-server logs files

I am running Rstudio-server inside a centos container. But I am not able to get the logs from the running container. I have already tried RStudio Server - Application Logs as well as on stackoverflow answer, but they were not any help to me. I have…
kayush206
  • 158
  • 1
  • 8
2
votes
3 answers

Shrinking log file in SQL Server has no change in file size

I work for an organization and i have come across a problem where i cannot shrink the log file. The SQL server database is consuming 400 GB out of 600 GB hard disk drive. The log file size is around 350 GB. I tried shrinking the log file but the…
LOL
  • 101
  • 6
  • 17
2
votes
5 answers

How to get the latest file from a directory

This is specific to creating a logfiles. When I am connecting to a server using my application, it writes the details to a log file. When the log file reaches to specific size let's say 1MB then I create another file named LOG2.log. Now While…
Simsons
  • 12,295
  • 42
  • 153
  • 269
2
votes
4 answers

How do I trim a log file with vb.net?

I'm writing a simple application in vb.net and need to output some information to a log file for diagnostic purposes. In order to ensure that the log file doesn't get too big, I need to trim it to a certain number of lines (say 5000). For…
Richard
  • 1,471
  • 7
  • 23
  • 47
2
votes
2 answers

Matching everything between two specific words using regular expressions

I'm attempting to parse an Oracle trace file using regular expressions. My language of choice is C#, but I chose to use Ruby for this exercise to get some familiarity with it. The log file is somewhat predictable. Most lines (99.8%, to be specific)…
Justin Rusbatch
  • 3,992
  • 2
  • 25
  • 43
2
votes
2 answers

python analyse 2 logfiles

I have 2 large logfiles. I want to see if a device is in a but not b and vice versa (exclude lines where the device is common) the files look like this example. 04/09/2010,13:11:52,Authen OK,user1,Default…
Bill
  • 21
  • 1
2
votes
1 answer

Moving files from log servers to Oracle - Flume

I'm trying to create a log file from the log servers and pushing it in to oracle. Is there a way I could implement the same using Flume (without HDFS setup) to push the log file in to ORACLE? Any help would be greatly appreciated.
Anil
  • 420
  • 2
  • 16
2
votes
2 answers

SQL Server 2005 Database Logfile is HUGE, full

Let me start by saying I am not an SQL or SQL Server expert by ANY means. I know how to create a database and develop a website that uses it. Beyond that, db administration is completely lost on me :( that being said I'm stuck. My log file for two…
SelAromDotNet
  • 4,715
  • 5
  • 37
  • 59
2
votes
2 answers

How to parse log file using python and store data in database?

I am trying to parse a log file .which contains the structure like given below i want to do it with python and want to store extracted data in database how can i do this ? i am able to parse simple key value pair but facing some problem. 1: How can…
2
votes
1 answer

Realtime output redirection

Currently I am redirecting a script to a log file with the following command: python /usr/home/scripts/myscript.py 2>&1 | tee /usr/home/logs/mylogfile.log This seems to work but it does not write to the file as soon as there is a print command.…
preezzzy
  • 598
  • 5
  • 23
2
votes
1 answer

IIS log analysis - how to retrieve referer information

As per this MSDN article: W3C Extended Log File Format (IIS 6.0) It says cs(Referrer) contains the REFERER information that can be read from the IIS log files. I am trying to display the log information using an ASP.NET Repeater…
balalakshmi
  • 3,968
  • 6
  • 40
  • 48
2
votes
2 answers

Alternating Logfiles

I am trying to write a Logfile Writer class in c#. I want to do following: I write my logs in the 1st Logfile, if it is over a certain size, it will write in the 2nd logfile. If the 2nd logfile is full, then delete the 1st one and write in that one…
HigHendHd
  • 59
  • 1
  • 7
2
votes
1 answer

How Do You Programmatically Go To The End Of The A NotePad File If Opened By A Windows Form Application

I am creating a Windows Form Application and I want the user to be able to open the log file on request, after selecting the option on a menu strip. I can open the file within notepad but the most recent entries will be at the end of the file. How…
2
votes
5 answers

Automatically download log file from Unix server to Windows machine

I have a Unix server on which a continuously running application generates a large text log. (aprox. 100megs an hour). My main development machine is a Windows computer and to see what's going on with the application I use Filezilla to download the…
Alex
  • 21
  • 1
  • 2