Change location of log file from pkg, due to logrotate problem?
Hello I am now the maintainer of the bacula packages in aur. http://aur.archlinux.org/packages.php?ID=4510
The package ships with a log rotate file which points to /usr/var/bacula/working/log as the log file. However, log rotate gives
error: bacula:14 olddir /var/log/archive and log file /usr/var/bacula/working/log are on different devices
error: found error in file bacula, skipping
invalid password file entry
delete line ''? No
invalid password file entry
delete line ''? No
pwck: no changes
The solution to this is to change the log path to /var/log/bacula. My question is if I should leave the log path as is and have the user change it, or should I patch both the config file and syslog file to contain /var/log/bacula?
Thanks,
~pyther
Last edited by pyther (2009-01-27 22:41:06)
It was talking about a trace will be placed under your background dump destination. As you would have using
alter database backup controlfile to trace;Check your background dump destination where your alert log is.
Similar Messages
-
Capturing log files from multiple .ps1 scripts called from within a .bat file
I am trying to invoke multiple instances of a powershell script and capture individual log files from each of them. I can start the multiple instances by calling 'start powershell' several times, but am unable to capture logging. If I use 'call powershell'
I can capture the log files, but the batch file won't continue until that current 'call powershell' has completed.
ie. within Test.bat
start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > a.log 2>&1
timeout /t 60
start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > b.log 2>&1
timeout /t 60
start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > c.log 2>&1
timeout /t 60
start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > d.log 2>&1
timeout /t 60
start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > e.log 2>&1
timeout /t 60
start powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > f.log 2>&1
the log files get created but are empty. If I invoke 'call' instead of start I get the log data, but I need them to run in parallel, not sequentially.
call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > a.log 2>&1
timeout /t 60
call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > b.log 2>&1
timeout /t 60
call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > c.log 2>&1
timeout /t 60
call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > d.log 2>&1
timeout /t 60call powershell . \Automation.ps1 %1 %2 %3 %4 %5 %6 > e.log 2>&1
Any suggestions of how to get this to work?Batch files are sequential by design (batch up a bunch of statements and execute them). Call doesn't run in a different process, so when you use it the batch file waits for it to exit. From CALL:
Calls one batch program from another without stopping the parent batch program
I was hoping for the documentation to say the batch file waits for CALL to return, but this is as close as it gets.
Start(.exe), "Starts a separate window to run a specified program or command". The reason it runs in parallel is once it starts the target application start.exe ends and the batch file continues. It has no idea about the powershell.exe process
that you kicked off. Because of this reason, you can't pipe the output.
Update: I was wrong, you can totally redirect the output of what you run with start.exe.
How about instead of running a batch file you run a PowerShell script? You can run script blocks or call individual scripts in parallel with the
Start-Job cmdlet.
You can monitor the jobs and when they complete, pipe them to
Receive-Job to see their output.
For example:
$sb = {
Write-Output "Hello"
Sleep -seconds 10
Write-Output "Goodbye"
Start-Job -Scriptblock $sb
Start-Job -Scriptblock $sb
Here's a script that runs the scriptblock $sb. The script block outputs the text "Hello", waits for 10 seconds, and then outputs the text "Goodbye"
Then it starts two jobs (in this case I'm running the same script block)
When you run this you receive this for output:
PS> $sb = {
>> Write-Output "Hello"
>> Sleep -Seconds 10
>> Write-Output "Goodbye"
>> }
>>
PS> Start-Job -Scriptblock $sb
Id Name State HasMoreData Location Command
1 Job1 Running True localhost ...
PS> Start-Job -Scriptblock $sb
Id Name State HasMoreData Location Command
3 Job3 Running True localhost ...
PS>
When you run Start-Job it will execute your script or scriptblock in a new process and continue to the next line in the script.
You can see the jobs with
Get-Job:
PS> Get-Job
Id Name State HasMoreData Location Command
1 Job1 Running True localhost ...
3 Job3 Running True localhost ...
OK, that's great. But we need to know when the job's done. The Job's Status property will tell us this (we're looking for a status of "Completed"), we can build a loop and check:
$Completed = $false
while (!$Completed) {
# get all the jobs that haven't yet completed
$jobs = Get-Job | where {$_.State.ToString() -ne "Completed"} # if Get-Job doesn't return any jobs (i.e. they are all completed)
if ($jobs -eq $null) {
$Completed=$true
} # otherwise update the screen
else {
Write-Output "Waiting for $($jobs.Count) jobs"
sleep -s 1
This will output something like this:
Waiting for 2 jobs
Waiting for 2 jobs
Waiting for 2 jobs
Waiting for 2 jobs
Waiting for 2 jobs
Waiting for 2 jobs
Waiting for 2 jobs
Waiting for 2 jobs
Waiting for 2 jobs
Waiting for 2 jobs
When it's done, we can see the jobs have completed:
PS> Get-Job
Id Name State HasMoreData Location Command
1 Job1 Completed True localhost ...
3 Job3 Completed True localhost ...
PS>
Now at this point we could pipe the jobs to Receive-Job:
PS> Get-Job | Receive-Job
Hello
Goodbye
Hello
Goodbye
PS>
But as you can see it's not obvious which script is which. In your real scripts you could include some identifiers to distinguish them.
Another way would be to grab the output of each job one at a time:
foreach ($job in $jobs) {
$job | Receive-Job
If you store the output in a variable or save to a log file with Out-File. The trick is matching up the jobs to the output. Something like this may work:
$a_sb = {
Write-Output "Hello A"
Sleep -Seconds 10
Write-Output "Goodbye A"
$b_sb = {
Write-Output "Hello B"
Sleep -Seconds 5
Write-Output "Goodbye B"
$job = Start-Job -Scriptblock $a_sb
$a_log = $job.Name
$job = Start-Job -Scriptblock $b_sb
$b_log = $job.Name
$Completed = $false
while (!$Completed) {
$jobs = Get-Job | where {$_.State.ToString() -ne "Completed"}
if ($jobs -eq $null) {
$Completed=$true
else {
Write-Output "Waiting for $($jobs.Count) jobs"
sleep -s 1
Get-Job | where {$_.Name -eq $a_log} | Receive-Job | Out-File .\a.log
Get-Job | where {$_.Name -eq $b_log} | Receive-Job | Out-File .\b.log
If you check out the folder you'll see the log files, and they contain the script contents:
PS> dir *.log
Directory: C:\Users\jwarren
Mode LastWriteTime Length Name
-a--- 1/15/2014 7:53 PM 42 a.log
-a--- 1/15/2014 7:53 PM 42 b.log
PS> Get-Content .\a.log
Hello A
Goodbye A
PS> Get-Content .\b.log
Hello B
Goodbye B
PS>
The trouble though is you won't get a log file until the job has completed. If you use your log files to monitor progress this may not be suitable.
Jason Warren
@jaspnwarren
jasonwarren.ca
habaneroconsulting.com/Insights -
Hi,
Could anyone help me to find the location of log file in crystal reports serverXI. I need the information of crystal reports execution time,parameters used etc. Anything related to crystal reports is fine with me.
Thanks in advance.
-Vijay Kanth
91- 9036431531Here are instructions to enable the trace and where it can be found.
1199303 - How to trace Crystal Report Print Engine errors in BusinessObjects Enterprise XI and Crystal Enterprise
Version 1 Validity: 11/27/2007 - active
Language English
Edit Show change log Show Internal Memos
Content: Summary | Header Data | Product | Other Properties
Symptom
How do I trace Crystal Report Print Engine errors in BusinessObjects Enterprise XI and Crystal Enterprise?
Cause
Various error messages appear and poor behavior occurs when viewing Crystal Reports on demand or scheduling reports within Enterprise XI and Crystal Enterprise. Advanced logging techniques can reveal the causes of these issues.
Resolution
To help troubleshoot issues, add -crpetrace 7 and -trace to the command line parameters for the Crystal Reports Job Server or the Crystal Reports Page Server.
The Crystal Reports Job Server handles scheduled reports, and the Crystal Reports Page Server processes on-demand reports.
Here are the steps:
Click Start > Programs > BusinessObjects11 > BusinessObjects Enterprise > Central Configuration Manager.
Right-click the server requiring the advanced logging. Click Stop.
Right-click the server. Click Properties.
Go to the end of the Command field.
Press the spacebar once. Type "-crpetrace 7" and "-trace".
Click OK.
Right click the server. Click Start.
Advanced logging is now enabled.
The default logging folder path is: <installation directory>:\Program Files\Business Objects\BusinessObjects Enterprise 11\Logging\.
The CRPE log files will be named similar to the following:
pageserver_20071108_193611_5008_crpe_bkgrnd.log
pageserver_20071108_193611_5008_crpe_Diagnostics.log
pageserver_20071108_193611_5008_crpe_functions.log
====================
NOTE:
These parameters provide extensive logging. Every call to the Crystal Report Print Engine will be logged. If a support case is still required, it will be helpful to attach the results of this trace to facilitate the diagnosis and expedite a solution.
====================
Keywords
crpe crpetrace pageserver jobserver enterprise , 463766
Header Data
Released on 11/27/2007 06:55:21 by Commodore Tom Concannon (I817183)
Release Status Released to Customer
Component BOJ-BIP
Responsible Commodore Tom Concannon ( I817183 )
Processor Commodore Tom Concannon ( I817183 )
Category How To
Product
Product Product Version
Crystal Enterprise CRYSTAL ENTERPRISE 10
CRYSTAL ENTERPRISE 9
Crystal Reports Server CRYSTAL REPORTS SERVER XI
CRYSTAL REPORTS SERVER XI R2
Crystal Reports Server, OEM edition CR SERVER EMBED XI R2
SAP BusinessObjects Enterprise BOBJ ENTERPRISE XI
BOBJ ENTERPRISE XI R2
Other Properties
Business Objects Article ID 463766
Business Objects ProductFamilyMajorVersion BusinessObjects Enterprise XI
Crystal Enterprise 10
Crystal Enterprise 9
Crystal Reports Server XI
Business Objects ProductName BusinessObjects Enterprise
Crystal Enterprise
Crystal Reports Server
Business Objects ProductMajorVersion BusinessObjects Enterprise XI
Crystal Enterprise 10
Crystal Enterprise 9
Business Objects BuildVersion 10.0.0.0
10.2.0.0
11.0.0.0
11.0.0.x
11.0.1.x
11.0.2.x
11.1.0.0
11.2.0.0
11.3.0.0
11.5.0.0
Business Objects SupportQueue Architecture
Business Objects ProductLanguage English -
MAXDB copy log file from one server to the other server.
Hi All,
I want to copy a log file from one server to the other server , the database is Maxdb and i don't know how to do it. I want to do it through command prompt, (set of commands required) the front end tool which we are using is DBM ( database manager). Please help.
Regards
M.AHi,
Basically, the process is of log shipping. Transferring logs from DC to DR system.
For that, you can check HowTo - Standby DB log shipping - MaxDB - SCN Wiki
This is script based. I have not done it but the idea remains the same.
Regards,
Divyanshu -
In R12 how to change concurrent output/log file name prefix?
how to change concurrent output/log file name prefix?
but i want to change change concurrent output/log file name prefix?You cannot, and I believe it is not supported for all concurrent requests -- Please log a SR to confirm this with Oracle support.
Thanks,
Hussein -
Hi there,
the headline says basically all: Is there a way to collect the log files from a Time Capsule 7 AirPort from time to time? They are overwritten quite soon but I want a complete log of all activities to my access point.
The AirPort Utility says something about SNMP. Is this the way to go? Some kind of demon on my Mac that retrieves and saves the logs like every two days?
I want to copy the access logs, I am not interested in Time Machine backup logs.
Thanks.There is a way to do this via Syslog. On the Logging & Statistics panel (within the AirPort Utility), you can point the AirPort's system logs to a Syslog "server."
This would require a "dedicated" network client to receive the logs.
Unfortunately, setting up a Syslog server is a bit intensive initially, but is simple to operate and maintain.
Please check out this Apple Support Communities thread: Directing Syslog message to a file
ref: Enable an Apple Mac OS machine as a syslog server -
Application to read 2 log files from internet
Hi,
Anybody could tell me how to develop this project. I'm lack of time. thanks
You have been asked into a company called Broken Arrow Software as a Senior Software Engineer and Management consultant. You are being paid very handsomely and have been asked to write an application program in Java for parsing a log file.
� The program will have a standard menu using the AWT only.
� ALL LAYOUTS MUST USE ONLY THE BORDER-LAYOUT OR GRID-LAYOUT OR A COMBINATION OF BOTH (Any other layouts score zero).
This application reads two Log files from the internet. The first file contains USA state names and the abbreviation used for that state. This information will be used in displaying totals from another network file and should be stored in an array (or two arrays, or a two dimensional array) in the program. The second file should extract the �Reversed subdomain� section from a Log file (a section is shown later) and store this in an array in the application. This should be processed and only those domains beginning with �us.� should be processed. Each �us.� Has an abbreviated USA state after it (�tx� is an abbreviation for Texas). The abbreviations are sorted and all states are on consecutive lines and each displays a number of accesses for that state. The accesses should be totalled and displayed in the current Frame for each state in the form of Java List components (these do not need to be synchronised so that they all scroll in unison).
The application will be a Java application with the following menus and MenuItems:
� Splash screen (10%)
� Application (20%)
o Open USA abbreviation file
o Clear screen
o Exit
� File (25%)
o Open network log file
o Open locally saved report file
o Recent report files
o Save as report file
� Graph (20%)
o Plot
� Help (15%)
o Help on Application
o About
A basic pass for the application will be for a basic implementation of an application with �help� options and some basic implementations of a Splash screen and some basic file and application options. Very high marks will be awarded for processing network files, saving and opening files, very good HCI, application design and error handling, excellent OO design for classes, gorgeous layout and commenting of code and excellent graphing capabilities.
Error handling dialogs and overall application design (10%)
Every class must be in a separate file.
Inheritance should be used for WindowListeners of Frames and Dialogs.
Up to 10% can also be lost by unprofessional code layout and lack of professional standards. Always adhere to standards taught throughout the module and your time at the University of Northumbria.
Examples of non-professionalism would include bad indentation, no comments, meaningless variable names, politically incorrect graphics, commented out code, empty .java files, .java files which are not part of the project etc. Remember your application is your livelihood and your company depends on your application standards.
The splash screen must be a Frame with a Canvas as part of it showing your own logo. Your logo should be individual to you but does not need to win the computing equivalent of the Turner prize. The application should be displayed behind the Splash screen and both should be visible. The application must not be able to be brought to the front and used without the Splash screen being disposed of.
The application should only enable the �Open USA abbreviation file�, �Open locally saved report file�, �Help� options and �Exit� Menus and MenuItems, when the application starts. On opening a valid USA abbreviation file, then the other Menus and MenuItems should be enabled.
The abbreviations should be read into an array. These should be used in displaying the totals for the reversed subdomain totals for each USA state. A total for all USA states should be displayed at the bottom of the current Frame, with a suitable Label (this design is your own). This current Frame should display a series of Lists starting with a List of USA state number (1 to n). A List of USA state abbreviation should be next followed by a List of the actual USA state name, followed by a List of the total accesses for that state.
The report file should be an ASCII file that can be printed out from an ASCII text editor such as DOS edit or Microsoft NotePad.
The �Open� network files should display a Dialog asking for the http:// address of the file, with �OK� and �Cancel� options. It is helpful if the user can hit �return� instead of clicking on �OK� and �Escape� instead of �cancel�. Error Dialogs should be used to indicate any errors that may occur and the state of the application should be reset to that of before displaying the Dialog.
When �Save as report file� is chosen a FileDialog box should be used for the user to choose both directory and filename. The file should be able to be saved as a �.rpt� file.
Open report file should display the report in a Frame; the design of which is your own.
Plotting the graph should pass a two dimensional array to a Frame with a Canvas. The Canvas should have a Paint method that draws the axis for the graph and any suitable Headings etc. The graph should draw a histogram of totals per USA states. The graph design is your own but you may wish to use Microsoft Excel as a good example of drawing a histogram.
The �Clear screen� option should clear any data off the current screen.
The �Exit� option should quit the application but it may be helpful to ask the user if they really want to exit the application.
Help must be Java code and not linking into HTML. It should display help in a well designed screen. The most basic implementation might use a scrollable TextArea for a basic mark.
See other software for a good �About� screen. The most basic should display your name, date, version and company.
� Help should display your help on using the application. As a senior software engineer, the design is your own, based on experience of using applications, as is the opening splash screen. You may use other applications for inspiration only, as these will make up your experience.
� Your good knowledge gained from HCI units studied should prove invaluable in the interface design and the usability of the application.
� The design (Screens and classes) and quality and documentation of code throughout the application will be marked. The experience gained from programming 1 and 2 and Object Oriented Programming should prove invaluable throughout the application, as should any GUI units studied.
The log file can be accessed at:
http://computing.unn.ac.uk/staff/cgpb2/public_html/log.htmlYou would really gain ever so much more from this exercise if you would write a couple of classes, then come back with some specific questions. If you're completely lost, try starting with the GUI first. It's not the best practice, always, but it is easy to visualize.
On a side note, I wish I'd had assignments even half this intersting when I was in my Java classes... -
How to view weblogic log files from a browser
Hi,
I am running WebLogic Server 7.03 on Solaris 8.
I have one Admin and multiple Managed servers running.
Each creates its own log file.
Is there anyway I can access this log files from the browser ?
In Apache, you can create a link from htdocs dir to the logs dir
and then view the log files from the browser. Is there a similar
mechanism in Weblogic server.
A quick response is well appreciated.
Thanks in advance.
-Anil VarmaIf you are on a unix system you can do something similar by making an open
directory webapp with symbolic links to the weblogic log directories. I suggest
that you protect that webapp with administration access only.
Sam
Anil Varma wrote:
Hi,
I am running WebLogic Server 7.03 on Solaris 8.
I have one Admin and multiple Managed servers running.
Each creates its own log file.
Is there anyway I can access this log files from the browser ?
In Apache, you can create a link from htdocs dir to the logs dir
and then view the log files from the browser. Is there a similar
mechanism in Weblogic server.
A quick response is well appreciated.
Thanks in advance.
-Anil Varma -
How to remove archive log files from ASM managed 11g R2 database?
Hi,
I am planning to automate deletion of older archive log files from my 11g R2 Production instance which is ASM managed.
Also want to remove the archive log files files from standby database.
Please provide your inputs on how can I remove the older archive log files.
Regards,
AvinashGreetings
Did you check RMAN,
RMAN>show all;
CONFIGURE RETENTION POLICY . . . .
CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
DELETE NOPROMPT EXPIRED ARCHIVELOG ALL;
DELETE NOPROMPT ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-10';
This will be part of your RMAN Backup scripts/process
Check the urls below:
11gRel2:
http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV90079
http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmmaint.htm#BRADV89634
10g:
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14193/toc.htm#sthref45
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1.htm#i1008093
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/maint003.htm#sthref712
Regards & Thanks
BN -
How to delete archive log files from ASM through Grid Control
Hi
Anybody suggest me how to delete archive log files from ASM through Grid Control.
ThanksIt is important to specify both, the oracle version and os version when posting, so confusions can be avoided.
In this particular case, since you are referring to asm and grid control you could be talking about either 10gR1, 10gR2 or 11gR1; but I strongly suggest you to avoid us to be guessing. In either case, you sould go to the maintenance tab of the target database and program a scheduled 'delete noprompt obsolete;' procedure. This will purge the information stored at the Flash recovery area, which I assume you have declared inside the ASM.
~ Madrid
http://hrivera99.blogspot.com/ -
How to perform dir listing of Weblogic log files from a browser
Hi,
I am running WebLogic Server 7.03 on Solaris 8.
I have one Admin and multiple Managed servers running.
Each creates its own log file.
Is there anyway I can access this log files from the browser ?
In Apache, you can create a link from htdocs dir to the logs dir
and then view the log files from the browser. Is there a similar
mechanism in Weblogic server.
A quick response is well appreciated.
Thanks in advance.
-Anil VarmaHi,
Open up admin console. Expand "Servers" node to view servers in domain.
Right click on a server (or select Logging/ General tab) and select "view
server log".
Regards,
Jon -
Find the log files from EIM?
Please, tell me where I can find the log files from EIM.
I have already checked the directory /siebel/siebsrvr/log but the files there are old.
Regards, SlaviYou need to configure the log level and events for the EIM component.
You can go to Administration Server Configuration > Servers and choose the EIM Component.
Good Luck.
Antonio
BExpert, Brazil -
If i open the log file from firefox browser it is not open and throws an error as
"The address wasn't understood
Firefox doesn't know how to open this address, because one of the following protocols (e) isn't associated with any program or is not allowed in this context."What type of log file?
What is the file name?
What is the file path or URI? -
How can we delete archive log files from OEM
Hi,
I took backup of the archive log file and deleted it at OS level but in it is not reflecting in the EM can any one tell me how to delete archive log files from OEM.
any help will be appreciated.
Regards,
AshrafThis link?
http://download-west.oracle.com/docs/cd/B10501_01/em.920/a96670/ch_backp.htm#26936 -
How can I generate and/or retrieve log files from iPad
How can I generate and/or retrieve log files from iPad?
OBS!
There are NO files apearing in ~/Library/Logs/CrashReporter/MobileDevice/<name of iPad> so where else can i find it?
I want to force it to produce a log, or find it within the iPad.
It is needed for support of an app.Not sure on porting out the log data, but you can find it under General->About->Diagnostic&Usage->Diagnostic&Usage Data. It will give you a list of your log data, and you can get additional details by selecting the applicable log you are looking for. Hope this helps.
Maybe you are looking for
-
I HAVE BLOCK SITE AND i FOR GOT MY PASSWORD WHAT DO i DO?
i SET A PASSWORD FOR BLOCK SITE AND FOR GOT IT. WHERE CAN i CHANGE THAT?
-
Acrobat XI Outlook 2013 add-on crashes Outlook
Acrobat XI Outlook 2013 add-on crashes Outlook each time I try to convert an email to PDF, I did not see a relevant answer to this specific problem in the forums. Of course I can print an email to acrobat PDF but I believe a fix or an update from Ado
-
Value of attribute defined in Component controller level is not avalabale
Hi Experts, I am facing one strange thing. There is one standard WD /PLMU/WDC_RFO which i am enhancing. I define one attribute at Component controller level and fill it but the value is not available at View level. The Attribute is although exist at
-
Best way to save XML results to a file via command line
I'm trying to set up an easy way that I can save my XML results to a file via the command prompt. Here's my current command line statement sqlcmd -S server/database -E -i C:\XML.sql -o C:\Test.xml -h -1 -m 1 -y0 That works about 95% of the way. The p
-
Functionmodule: get includes from program
Hello, I need a function module, the FM supplies the Includes from this program . Does such a function module exist?