How to tail logs in WLST?

I am trying to tail any OIM log.
I executed the wlst script found in "<IDM_HOME>/common/bin" directory.
Next I use the connect() command to establish a connection to WebLogic Administration.
Then I use the displayLogs command providing the path to my log file and the follow option.
I don't see any new logs displaying in the wlst session (I know for a fact that new logs are being written into the file). What could be the problem for the displayLogs command not displaying new logs? A working example of the displayLogs with the follow option enabled would be nice.

have a look at oracle docs - Logging Custom WLST Commands
Thanks,
Souvik.

Similar Messages

  • How to tail log files from particular string

    Hello,
    We would like to tail several log files "live" in powershell for particular string. We have tried to use "get-content" command but without luck because everytime as a result we received only results from one file. I assume that it was
    caused by "-wait" parameter. If there is any other way to tail multiple files ?
    Our sample script below
    dir d:\test\*.txt -include *.txt | Get-Content -Wait | select-string "windows" |ForEach-Object {Write-EventLog -LogName Application -Source "Application error" -EntryType information -EventId 999 -Message $_}
    Any help will be appreciated.
    Mac

    Because we want to capture particular string from that files. Application writes some string time to time and when the string appears we want to catch it and send an eventy to application log, after it our Nagios system will raise alarm.
    Mac
    Alright, this is my answer, but I think you won't like it.
    Run this PowerShell code in PowerShell ISE:
    $file1='C:\Temp\TFile1.txt'
    '' > $file1
    $file2='C:\Temp\TFile2.txt'
    '' > $file2
    $special='windowswodniw'
    $exit='exit'
    $sb1={
    gc $using:file1 -Wait | %{
    if($_-eq$using:exit){
    exit
    }else{
    sls $using:special -InputObject $_ -SimpleMatch
    } | %{
    Write-Host '(1) found special string: ' $_
    $sb2={
    gc $using:file2 -Wait | %{
    if($_-eq$using:exit){
    exit
    }else{
    sls $using:special -InputObject $_ -SimpleMatch
    } | %{
    Write-Host '(2) found special string: ' $_
    sajb $sb1
    sajb $sb2
    In this code, $file1 and 2 are the files being waited for.
    As I understood you, you care only for the special string, which is in the variable $special.
    All other variables, will be discarded.
    Also, whenever a string equals to $exit is written to the file, the start job corresponding to that file will be terminated, automatically! (simple, right?)
    In the example above, I use only 2 files (being watched) but you can extend it, easily, to any number (as long as you understand the code).
    If you are following my instructions, at this point you have PowerShell ISE  running, with 2 background jobs,
    waiting for data being inputed to $file1 and 2.
    Now, it's time to send data to $file1 and 2.
    Start PowerShell Console to send data to those files.
    From its command line, execute these commands:
    $file1 = 'C:\Temp\TFile1.txt'
    $file2='C:\Temp\TFile2.txt'
    $exit='exit'
    Notice that $file1 and 2 are exactly the same as those defined in P
    OWERSHELL ISE, and that I've defined the string that will terminate the background jobs.
    Command these commands in PowerShell Console:
    'more' >> $file1
    'less' >> $file1
    'more' >> $file2
    'less' >> $file2
    These commands will provoke no consequences, because these strings will be discarded (they do not contain the special string).
    Now, command these commands in PowerShell Console:
    'windowswodniw' >> $file1
    '1 windowswodniw 2' >> $file1
    'more windowswodniw less' >> $file1
    'windowswodniw' >> $file2
    '1 windowswodniw 2' >> $file2
    'more windowswodniw less' >> $file2
    All these will be caugth by the (my) code, because they contain the special
    string.
    Now, let's finish the background jobs with these commands:
    $exit >> $file1
    $exit >> $file2
    The test I'm explaining, now is DONE, TERMINATED, FINISHED, COMPLETED, ...
    Time to get back to PowerShell ISE.
    You'll notice that it printed out this (right at the beginning):
    Id Name PSJobTypeName State HasMoreData Location Command
    1 Job1 BackgroundJob Running True localhost ...
    2 Job2 BackgroundJob Running True localhost ...
    At PowerShell ISE's console, type this:
              gjb
    And you'll see the ouput like:
    Id Name PSJobTypeName State HasMoreData Location Command
    1 Job1 BackgroundJob Completed True localhost ...
    2 Job2 BackgroundJob Completed True localhost ...
              (  They are completed!  )
    Which means the background jobs are completed.
    See the background jobs' outputs, commanding this:
              gjb | rcjb
    The output, will be something like this:
    (1) found special string: windowswodniw
    (1) found special string: 1 windowswodniw 2
    (1) found special string: more windowswodniw less
    (2) found special string: windowswodniw
    (2) found special string: 1 windowswodniw 2
    (2) found special string: more windowswodniw less
    I hope you are able to understand all this (the rubbishell coders, surely, are not).
    In my examples, the strings caught are written to host's console, but you can change it to do anything you want.
    P.S.: I'm using PowerShell, but I'm pretty sure you can use older PowerShell ( version 3 ). Anything less, is not PowerShell anymore. We can call it RubbiShell.

  • Tailing log messages

    Currently I'm working on an app that must display some log messages on the GUI. Depending on the urgency of the message (i.e. fatal, debug, info etc.) I want to give the message some visible characteristics (color, icon) to make the important onces stand out for the end-user. I'm thinking of using a JList (inside a JScrollPane) and add some JLabels to that. I can use html on the JLabel to change the visible characteristics. This seems to work. But...
    I prefer to add each new log message to the end of the list. So the last line is the most recent one. But I also want this line to be visible after it has been added. To accomplish this I've added a listener on the Lists model to get a trigger when the contents have changed. When that happens I use the ensureIndexIsVisible() method of the list to make sure the added line is visible. This works 90% of the time. Once in a while the list scrolls up to the first line and sometimes it even becomes completely blank. The next update gets things back in order though. But I don't like the strange behaviour and I can't figure out if I'm doing something wrong (and if so, what is it). Any thoughts on this?
    Maybe there is another way to accomplish my goal. Any suggestions on how to tail formatted log messages?
    Thanx,
    Vincent

    This may be overkill for your house, but for production its great.  I use Managed Workplaces from http://www.levelplatforms.com/.  Its like cacti etc.  It has built in modules for cisco routers, juniper, windows server etc.  It monitors linux box via snmp  and also set it to watch ports for services to verify they are up and running.  Its set as a syslog server for all the linux boxes as well, and if an say any facility shows a .err, an alert is generated, if any facility logs a critical erroc, an alert is created, a ticket is automatically created and assigned to a technician and depending on the device, the relevant people are email the error.  It also has a centralized remote console for devices.  So for a windows box, you can RDP directly to the console or remotely view the file system, linux we can remotely parse logs on the fly and ssh to the devices. The main dashboard is a web gui, so you can monitor it on your phone, or from your laptop no matter where you are.  It works pretty, well.  Its not without bugs and hiccups of course, and their development cycle seems to be very slow, but the product works great for what we use it for.  You get the bonus of people able to deploy it as a managed service and monitor other 'sites' and scale the view so their local IT staff can only monitor their subsection.  Once again, probably overkill, unless you are talking about monitoring a large amount of devices.

  • Why do i have two game center accounts on one apple id and how do i log into the other one

    One day while i was bored i started up a game but all of my progress items and everything that i paid for was gone and it was the same in all of my other game center related apps. After a long chain of emails with the maker of the game he stopped being helpful but we figured out that i have two game center accounts but only one apple id. So how do i log into the account with all of my data?

    Get a separate Apple ID for one of the phones. Or turn OFF iCloud contacts synching on the one you do not want contacts to synch.
    Settings>>iCloud

  • Wrong email for new ID verification email, how can I log in to change the wrong email?

    Just changed my Apple ID but after I was done I realized the email I used as my ID is wrong.  Now when I try to sign into iTunes I am being asked to verify the new ID using the verification email sent to the new email, problem being that that new email is wrong and I can't access it.  How can I log back into my account to change that email?  Help please.

    Did you get an answer to this? i have a new email and I can't verify the old one as it is blocked so can't log into it.  Any help will be appreciated.... thanks

  • HT204053 when I attempt to log in to my i Cloud account I get a message that my Apple ID is valid but not an iCloud account.How do I log in?

    When I try to log in to iCloud I get a message that my Apple ID is valid but not an iCloud account.How do I log in?

    Hi reswaikiki,
    Usually if it says your Apple ID is not an iCloud account, that means you have not yet enabled your Apple ID as an iCloud account.  So you did set it up correctly on your iPod touch?
    If not yet, please see Set up iCloud on all your devices.
    ivan

  • How to write log information into SM37 batch job log

    Hi,
    I have a report running in batch mode, and I would like to log the start time and end time for some part of the code (different Function modules). I need to write this log information into the batch job log. Therefore I can check the time frame of my FMs.
    After search the SDN, I can only get some information on how to write log into the application log displayed in SLG1, but that's not I want. I want to write batch log information, and check it in SM37.
    If you have some solution or code to share, please. Thanks a lot.
    Best Regards,
    Ben

    Hi Nitin
    Thanks for the reply. Could you explain it with some code ?
    I tried to use the write statement , but it did not wrok. I could not see the result in SM37.
    write : "start of the FM1 processing".
    FM1 code
    write : "end of the FM1 processing".
    but those two statement did not show in SM37..
    1) how to use  a information message  ?
    2) how to use NEW PAGE PRINT ON and PRINT OFF command. ?
    I would appreciate if you can write some code ,that I can use directly.
    Thanks a lot.
    Best Regards,
    Ben

  • I created a new Apple ID for iCloud on my iPhone, but I can't seem to find a way to "sign out" or "log out" of that Apple ID (for iCloud) to sign in with another Apple ID. The only account login I could change was the Store. How do I "log out"

    I created a new Apple ID for iCloud on my iPhone, but I can't seem to find a way to "sign out" or "log out" of that Apple ID (for iCloud) to sign in with another Apple ID. The only account login I could change was the Store.
    How do I "log out" or "sign out" of iCloud on my iPhone? There is an option to delete the account, but I just want to log off. I want to keep the account name for future use.

    @fernandamagalhaes
    It looks like the article below has the information you are looking for.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Turn off iCloud completely
    Depending on whether you want to stop using iCloud on all or only some devices, do one or more of the following:
    On your iOS device’s Home screen, go to Settings > iCloud, then at the bottom of the screen, tap Delete Account.
    Note:   If you delete your iCloud account, iCloud will no longer back up your iOS data. You can still back up your device in iTunes (for more information, open iTunes and choose iTunes > Help). 
    On your Mac, open iCloud preferences, then click Sign Out.
    If your Mac has OS X v10.7.5 and you turn off iCloud, your calendar information and reminders aren’t stored locally in iCal. If you want to retain your calendar and reminder information, you need to back it up before turning off iCloud. For more information, see the Apple Support article iCloud: Calendar & reminder data removed from Calendar and Reminders or iCal when disabling iCloud Calendar.
    On your Windows computer, open the iCloud Control Panel, then click Sign Out.
    Note:   If you turned on automatic download of music, app, or book purchases (in iTunes preferences or in Settings on your iOS device), your iTunes purchases are still downloaded to your devices.
    Set up iCloud on your devices

  • I changed my name on MacBook pro, I could not log in after that though the password is unchanged but tHe name appeared on the login window is the original name?..how I can log in?

    I changed my name on MacBook pro, I could not log in after that though the password is unchanged but tHe name appeared on the login window is the original name?..how I can log in?

    Hmmm.  Maybe try this?
    OS X: Changing or resetting an account password

  • I have forgotten my password how can I log in?

    Hi I have bought a new mac book air and have already forgottten the password! How do I log in there is no data to lose

    OS X 10.7 Lion, 10.8 MountainLion & 10.9 Mavericks
    Reset Password using Recovery HD
    Boot into Recovery Partition.
    Start the computer,then press and hold down command and R keys to start into recovery partition.
    When you see the Apple logo, release the keys.
    Wait until  OS X Utilities window shows up.
    Move the mouse to the menubar at the top and click "Utilities", then select "Terminal"
    from the drop down.
    Terminal window will appear.
    Type in   resetpassword   and press enter on the keyboard.
    Leave the Terminal window open.
    Reset Password Utility window will open with Macintosh HD selected.
    Select the user account from the popup menu box.
    Enter a new password.
    Reenter the new password for the user.
    Enter a hint.
    Click the "Save" button.
    Click  in the menubar and select Restart.

  • How can i log off another device from my apple id

    some time ago i have logged in with apple id on my friends iPad. and now his son is giving me a troubles in my game Clash of Clans. i have changed my apple id password, it doesnt resolve the problem. how can i log off on his ipad remotely ??

    Go to Settings>Mail, Contacts, Calendars and look in the Mail section.  If you have an icloud account listed there, just delete it.

  • How can I log onto iCloud from my iPad when the option is in grey and therefore not available

    How can I log onto iCloud from my iPad when the option is in grey and therefore not available. I deleted my account as it was showing up with an old Id ( I'd changed my email) but now I've done that it won't give me the option of logging back on. Do I have to do this on another device Or computer linked to iTunes first?
    THanks

    Hi Kate, have you perchance enabled restrictions on your device. (Settings > General > Restrictions)

  • How do I log into a kid profile in Game Center on my Apple ID?

    Hi all,
    I have a couple of kids, a couple of iPads, and a couple of profiles in Game Center, all on my Apple ID.
    I know how to get them their own Apple IDs, but they are too young to have Apple IDs of their own, and they will be getting special underage Apple IDs at school in a year or two, so I do not want to get them Apple IDs of their own until then.
    They have their own Game Center profiles right now, on their original iPads (version 1) and iOS 5.1.
    Now, we have purchased a new iPad for one of them, with iOS 7.1, and I wish to connect the Game Center app to his profile.
    I cannot do that.
    Starting Game Center always requests an Apple ID and password. I enter mine, I get my Game Center profile.  I log out, I try to use their nicknames and my password, it does not recognize that as a valid pair and refuses to log me in. I try his nickname and his password, also no good. I try my own again, and I log in as me.
    How do I log my children into Game Center using their profiles and nicknames that are associated with my Apple ID?
    Thank you,
    Danny.

    I am having this same EXACT issue! I cannot seem to get my daughter into her GC account on anything else (including her new device)

  • How can I log out of my Apple ID on my iphone 4 because I have the iphone 5 now?

    I bought an iphone 5 but still had the iphone 4. How can i log out of my apple id on the 4 so i can sell it without worrying about someone having access to my things?

    Jae Sinz wrote:
    ...How can i log out of my apple id on the 4...
    Settings > Store > Apple ID = Log out.
    Jae Sinz wrote:
    ...so i can sell it without worrying about someone having access to my things?
    ERASE / Clear All Data
    Go to Settings > General > Reset > Erase all content and settings

  • How do i log out from my mail?

    how do i log out from my mail

    Cannot close and quit Mail?
    Force Quit?
    Press command + option + esc keys together at the same time.
    Wait.
    When Force Quit window appears, select Mail, if not already.
    Press Force Quit button at the bottom of the window.
    Wait.
    Application will quit.
    If this does not help, press the power button for 7 or more seconds.
    Computer will shut down.

Maybe you are looking for

  • Error code 0xe0ef0003, No "BOOTMGR" after a system restore, no disc/self system.

    So ... my HP Pavilion dv7 NB, that I've owned just a mere two days shy of three years, decided to get extremely lazy late last night. I have malware programs in place, strong security, etc. but I suppose that something might have slipped in ... but u

  • AS2 Seeburger error troubleshooting

    Hi, I just would like to ask if anybody knows how to troubleshoot errors on AS2 Seeburger.  We usually have the below errors in the Seeburger Monitor: - Error on send, will not be retried     Could not send ansynchrone MDN to partner! - Error on rece

  • Can I produce a list of Aritsts / Albums directly from my itunes library?

    As the title says really! I want to porduce a word document (or similar) listing the content of my library. I have managed to do it once in the past but I cannot seem to do it again! Any help would be very much appreciated. rhid

  • Data vault installation

    I am trying to install Data Vault on our 11g database and am gett in the following error cd $ORACLE_HOME/lib make -f ins_rdbms.mk dv_on lbac_on ioracle make: ins_rdbms.mk: No such file or directory make: *** No rule to make target `ins_rdbms.mk'.  St

  • If radio button is checked then check box will be selected withoutexecuting

    hi, i have one doubt, is it possible if i select a radio button i want to check the check box at the same time and vice versa with out executing (f8) .                    plz provide the solution,                        thanks, in advance.