Questions tagged [log-files]

32 questions
53
votes
6 answers

Is writing server log files to a database a good idea?

After reading an article about the subject from O'Reilly, I wanted to ask Stack Overflow for their thoughts on the matter.
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
18
votes
6 answers

Merging multiple log files by date including multilines

I have several logs containing lines all starting with a timestamp, so that the following works as expected to merge them: cat myLog1.txt myLog2.txt | sort -n > combined.txt Problem is, that myLog2.txt can also contain lines without a timestamp…
Marco Behler
  • 3,627
  • 2
  • 17
  • 19
10
votes
2 answers

Sql Server change data and log path of existing database

I am having a SQL Server 2008 installation with almost 15 databases running on it. Now due to scarcity of space I would like to move the data path to another drive. What is the best practice for this. Please explain in details if including any SQL…
Soham Dasgupta
  • 5,061
  • 24
  • 79
  • 125
5
votes
2 answers

where is log file in nodejs app with winston

I can not find in my app directory where is 'test.log' file? below code is in server.js var winston = require('winston'), mylogger = new (winston.Logger)({ transports: [ new (winston.transports.Console) (), new (winston.transports.File)…
user3044147
  • 1,374
  • 5
  • 14
  • 23
2
votes
2 answers

Decoding scuba dive computer log files

Does anyone know of any libraries that decode one or more of the multitude of different scuba dive computer log file formats? DAN DL7 IRIS / DRAK Suunto Oceanlog Citizen ProDive NiTek Logic DCDS Ideally I'm looking for code that'll run in .NET,…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
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…
1
vote
2 answers

How to control SQL Server database log file size?

We are using MSSQL Server and our application has heavy data exchange every day; approx. 20K rows new data per day and the database “Log file size” keeps increasing likewise. We delete the data after processing to keep the DB size under control,…
Raj
  • 301
  • 4
  • 12
1
vote
1 answer

Filter logfile to create a csv report using PowerShell

I have a NetApp log output in a log file which is the below format. DeviceDetails.log file content /vol/DBCXARCHIVE002_E_Q22014_journal/DBCXARCHIVE002_E_Q22014_journal 1.0t (1149038714880) (r/w, online, mapped) Comment: " " Serial#:…
Javed Eqbal
  • 63
  • 1
  • 2
  • 11
1
vote
0 answers

How to setup logging within a python module, which automatically rotates log file after successful execution of all the components of a module?

I have created a module having various scripts in the root as well as the sub-folders. I was previously creating a logging script which defined a central logger instance and I was using RotatedFileHandler for creating the log file. The problem is I…
1
vote
1 answer

Tomcat 100% CPU Usage

I tried every thing to find the cause but not sure whats happing, tried to jProfile, but its not getting any results as cpu is already at 100%. I am running a Spring application (WAR file) on amazon linux on Tomcat8. no database operations but…
PHP Avenger
  • 1,744
  • 6
  • 37
  • 66
1
vote
3 answers

Why does DBCC SHRINKFILE work inconsistently in a database job?

DBCC SHRINKFILE always works when I run it manually on a log file, even when I get the following message: 'Cannot shrink log file 2 (Claim_Log) because all logical log files are in use.' When I run it from a job, however, it only shrinks the log…
Keith Walton
  • 5,211
  • 6
  • 39
  • 53
1
vote
1 answer

What is the proper way to create an apache-style log file using Erlang?

I think there is a specific module for this but can no longer figure out where I saw it ...
tbikeev
  • 343
  • 3
  • 12
0
votes
0 answers

Log file monitoring using active agent in zabbix?

I am trying to do log file monitoring using active agents in zabbix. Have created the below trigger log[/var/log/syslog,error] log[/var/log/zabbix/zabbix_agentd.log,error] But, no data is being fetched when i see the latest data tab. Below error is…
Tanya C
  • 85
  • 2
  • 8
0
votes
1 answer

Adding space between paths in powershell

I'm having a problem with my script that filters trough my logs and opens relevant ones in baretail. My problem at the moment is that some of the filepaths are printing without spaces in between and some have the space. I have been trying to get the…
Mira
  • 3
  • 2
0
votes
1 answer

Using config file for logging in python

i wrote function for logging in python: def go_logger(name_of_file): formatter = logging.Formatter('%(asctime)s - %(message)s') logging.basicConfig(filemode='a', datefmt='%m-%d-%Y') logger = logging.getLogger(name_of_file) …
Piduna
  • 609
  • 12
  • 28
1
2 3