How to disable buffering of similar messages in syslog?

Hi All,
Following is my system details:
SunOS mocm 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Fire-T200
On this system I see that, similar messages passed to syslog are suppressed after the first entry and only the count of the number of times that message got repeated is printed. However I want all the logs to be printed even if they have same content.
Here is what I am getting now:
+Jul 13 12:01:54 mocm Application[26103]: [ID 441523 local1.notice] xxWriting from stub+
Jul 13 12:01:54 mocm last message repeated 1 time
+Jul 13 12:02:45 mocm Application[2845]: [ID 188083 local1.notice] Writing from stub+
Jul 13 12:02:45 mocm last message repeated 2 times
+Jul 13 12:02:56 mocm Application[4485]: [ID 441523 local1.notice] xxWriting from stub+
Jul 13 12:02:56 mocm last message repeated 7 times
and this is what I want:
+Jul 13 12:01:54 mocm Application[26103]: [ID 441523 local1.notice] xxWriting from stub+
+Jul 13 12:01:54 mocm Application[26103]: [ID 441523 local1.notice] xxWriting from stub+
+Jul 13 12:02:45 mocm Application[2845]: [ID 188083 local1.notice] Writing from stub+
+Jul 13 12:02:45 mocm Application[2845]: [ID 188083 local1.notice] Writing from stub+
+Jul 13 12:02:45 mocm Application[2845]: [ID 188083 local1.notice] Writing from stub+
Is there a way I can configure syslogd to print all the log messages instead of buffering similar messages.
Thanks in advance for replies.
Santosh
Edited by: santosh.panda on Jul 13, 2010 6:48 AM

To disable automatic grouping of duplicate messages, quit Mail then run this command in Terminal:
     defaults write com.apple.mail AlwaysShowDuplicates -bool true
To revert to the default setting, run this command:
     defaults write com.apple.mail AlwaysShowDuplicates -bool false
or simply delete the setting altogether with this command:
     defaults delete com.apple.mail AlwaysShowDuplicates
If you want to see how Mail behaves with this setting enabled, but without modifying your preference file, start Mail from Terminal with this command:
     /Applications/Mail.app/Contents/MacOS/Mail -AlwaysShowDuplicates YES
I learned of Mail's modifiability (is that a word?) from here:
     http://hints.macworld.com/article.php?story=2004101603285984
and here:
     http://erikslab.com/2007/07/16/os-x-mailapp-logging/
I found the AlwaysShowDuplicates option by looking for interesting words similar to 'duplicates' in the Mail executable like this:
          strings /Applications/Mail.app/Contents/MacOS/Mail | grep -i duplicat

Similar Messages

  • How to disable detection of duplicate messages in Lion Mail?

    When Mail in Lion detects duplicate messages in a mailbox, it groups them together and shows the link in the header "x Duplicates", where x is the number of duplicate messages found. When that link is clicked the duplicate messages show in the mailbox separately. But I'd like Mail to stop grouping them together to begin with.
    Running OS X 10.7.3 and Mail 5.1

    To disable automatic grouping of duplicate messages, quit Mail then run this command in Terminal:
         defaults write com.apple.mail AlwaysShowDuplicates -bool true
    To revert to the default setting, run this command:
         defaults write com.apple.mail AlwaysShowDuplicates -bool false
    or simply delete the setting altogether with this command:
         defaults delete com.apple.mail AlwaysShowDuplicates
    If you want to see how Mail behaves with this setting enabled, but without modifying your preference file, start Mail from Terminal with this command:
         /Applications/Mail.app/Contents/MacOS/Mail -AlwaysShowDuplicates YES
    I learned of Mail's modifiability (is that a word?) from here:
         http://hints.macworld.com/article.php?story=2004101603285984
    and here:
         http://erikslab.com/2007/07/16/os-x-mailapp-logging/
    I found the AlwaysShowDuplicates option by looking for interesting words similar to 'duplicates' in the Mail executable like this:
              strings /Applications/Mail.app/Contents/MacOS/Mail | grep -i duplicat

  • [SOLVED] How to disable "No mail." message upon login?

    This one's really stumping me. I disable the mail message a few months ago by creating a .hushlogin file in my home directory. That did the trick. Now, I am seeing the message again, and I don't know why. .hushlogin still exists in my home directory. Here's my /etc/login.defs:
    # /etc/login.defs - Configuration control definitions for the login package.
    # Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
    # If unspecified, some arbitrary (and possibly incorrect) value will
    # be assumed. All other items are optional - if not specified then
    # the described action or option will be inhibited.
    # Comment lines (lines beginning with "#") and blank lines are ignored.
    # Modified for Linux. --marekm
    # Delay in seconds before being allowed another attempt after a login failure
    FAIL_DELAY 3
    # Enable display of unknown usernames when login failures are recorded.
    LOG_UNKFAIL_ENAB no
    # Enable logging of successful logins
    LOG_OK_LOGINS no
    # Enable "syslog" logging of su activity - in addition to sulog file logging.
    # SYSLOG_SG_ENAB does the same for newgrp and sg.
    SYSLOG_SU_ENAB yes
    SYSLOG_SG_ENAB yes
    # If defined, either full pathname of a file containing device names or
    # a ":" delimited list of device names. Root logins will be allowed only
    # upon these devices.
    CONSOLE /etc/securetty
    #CONSOLE console:tty01:tty02:tty03:tty04
    # If defined, all su activity is logged to this file.
    #SULOG_FILE /var/log/sulog
    # If defined, file which maps tty line to TERM environment parameter.
    # Each line of the file is in a format something like "vt100 tty01".
    #TTYTYPE_FILE /etc/ttytype
    # If defined, the command name to display when running "su -". For
    # example, if this is defined as "su" then a "ps" will display the
    # command is "-su". If not defined, then "ps" would display the
    # name of the shell actually being run, e.g. something like "-sh".
    SU_NAME su
    # *REQUIRED*
    # Directory where mailboxes reside, _or_ name of file, relative to the
    # home directory. If you _do_ define both, MAIL_DIR takes precedence.
    # QMAIL_DIR is for Qmail
    #QMAIL_DIR Maildir
    MAIL_DIR /var/spool/mail
    # If defined, file which inhibits all the usual chatter during the login
    # sequence. If a full pathname, then hushed mode will be enabled if the
    # user's name or shell are found in the file. If not a full pathname, then
    # hushed mode will be enabled if the file exists in the user's home directory.
    HUSHLOGIN_FILE .hushlogin
    #HUSHLOGIN_FILE /etc/hushlogins
    # *REQUIRED* The default PATH settings, for superuser and normal users.
    # (they are minimal, add the rest in the shell startup files)
    ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin
    ENV_PATH PATH=/bin:/usr/bin
    # Terminal permissions
    # TTYGROUP Login tty will be assigned this group ownership.
    # TTYPERM Login tty will be set to this permission.
    # If you have a "write" program which is "setgid" to a special group
    # which owns the terminals, define TTYGROUP to the group number and
    # TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
    # TTYPERM to either 622 or 600.
    TTYGROUP tty
    TTYPERM 0600
    # Login configuration initializations:
    # ERASECHAR Terminal ERASE character ('\010' = backspace).
    # KILLCHAR Terminal KILL character ('\025' = CTRL/U).
    # UMASK Default "umask" value.
    # The ERASECHAR and KILLCHAR are used only on System V machines.
    # The ULIMIT is used only if the system supports it.
    # (now it works with setrlimit too; ulimit is in 512-byte units)
    # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
    ERASECHAR 0177
    KILLCHAR 025
    UMASK 077
    # Password aging controls:
    # PASS_MAX_DAYS Maximum number of days a password may be used.
    # PASS_MIN_DAYS Minimum number of days allowed between password changes.
    # PASS_WARN_AGE Number of days warning given before a password expires.
    PASS_MAX_DAYS 99999
    PASS_MIN_DAYS 0
    PASS_WARN_AGE 7
    # Min/max values for automatic uid selection in useradd
    UID_MIN 1000
    UID_MAX 60000
    # System accounts
    SYS_UID_MIN 500
    SYS_UID_MAX 999
    # Min/max values for automatic gid selection in groupadd
    GID_MIN 1000
    GID_MAX 60000
    # System accounts
    SYS_GID_MIN 500
    SYS_GID_MAX 999
    # Max number of login retries if password is bad
    LOGIN_RETRIES 5
    # Max time in seconds for login
    LOGIN_TIMEOUT 60
    # Which fields may be changed by regular users using chfn - use
    # any combination of letters "frwh" (full name, room number, work
    # phone, home phone). If not defined, no changes are allowed.
    # For backward compatibility, "yes" = "rwh" and "no" = "frwh".
    CHFN_RESTRICT rwh
    # List of groups to add to the user's supplementary group set
    # when logging in on the console (as determined by the CONSOLE
    # setting). Default is none.
    # Use with caution - it is possible for users to gain permanent
    # access to these groups, even when not logged in on the console.
    # How to do it is left as an exercise for the reader...
    #CONSOLE_GROUPS floppy:audio:cdrom
    # Should login be allowed if we can't cd to the home directory?
    # Default in no.
    DEFAULT_HOME yes
    # If defined, this command is run when removing a user.
    # It should remove any at/cron/print jobs etc. owned by
    # the user to be removed (passed as the first argument).
    #USERDEL_CMD /usr/sbin/userdel_local
    # Enable setting of the umask group bits to be the same as owner bits
    # (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
    # the same as gid, and username is the same as the primary group name.
    # This also enables userdel to remove user groups if no members exist.
    USERGROUPS_ENAB yes
    Please help.
    Last edited by nbtrap (2012-07-14 21:59:46)

    orbisvicis wrote:see "pam_mail.so" in /etc/pam.d/* and "man pam_mail". You most likely need the nopen argument.
    Thank you. I fixed it by changing a line in /etc/pam.d/system-login. Specifically, I changed
    session optional pam_mail.so dir=/var/spool/mail standard
    to
    session optional pam_mail.so dir=/var/spool/mail nopen

  • How to disable [drm] and ntpd messages on console ?

    http://s9.postimage.org/e3ymmtxlr/tty1.png
    As you can see in the picture above, i want these messages not to apear on my console.
    I even can not write my user name to login because of them. ANNOYİGGGGGGG.
    I have to pres ENTER and sometimes lots of buttons to find a "Tombik(my hostname) login : ___" inscription.
    Also, the message below appears after the udev in the initscrips at the begining of the system.
    dd-nn-yyyy hh:mm:ss [drm] nouveau xxxx 1:00.0: no native mode, forcing panel scaling
    My /etc/rc.local file includes,
    { ntpd -qg; hwclock -w; } &
    ( I added this code as mentioned "Synchronize once per boot" section on here , for synchronizing my system date.)
    How can i prevent "[drm] nouveau.....forcing panel scaling" and "ntpd" messages not to be shown in the beginning system messages and my main console ?
    ( i use "drm_kms_helper.poll=0" and "quiet" in my /boot/grub/menu.lst . But they only solve screen flashing and "[drm] nouveau.....forcing panel scaling" message in every 10 second .)
    Last edited by ozgursarier (2012-09-16 07:40:39)

    http://s15.postimage.org/ag49k4zmz/tty2.png
    Root and the normal user login are the same. After the login there are "Can't open display" messages.
    This is my /etc/bash.bashrc file. There isn't any .bashrc file in root directory.
    # /etc/bash.bashrc
    # If not running interactively, don't do anything
    [[ $- != *i* ]] && return
    PS1='[\u@\h \W]\$ '
    PS2='> '
    PS3='> '
    PS4='+ '
    case ${TERM} in
    xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    screen)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
    esac
    [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
    But my main problem is more inportant then the "Can't open display" issue.

  • How to disable Unicode in SMS messages (Nokia 6670...

    Hello.
    I've bought N6670 and the first thing I want to change, is to disable Unicode charset in SMS messages. I use T9 dictionary, so the Unicode special charset is enabled (I'm from Poland, so there is a lot of special chars).
    But - of course - message with special chars is bigger, so the phone sends for example 2 messages, instead of one.
    Is it any chance to turn of sending special chars?
    Regards
    R.

    Hello,
    We use such messages in transliterate characters. As example, privet.
    That's the easiest way.
    Andrey
    6150, 8310, 2100, 6310, 6310i, 6230, 6600, 6630, 6700, E60, N80, E61, N93
    N95, E61i, E71, E72,8600, 5800, N8

  • How to Disable Popup Preview of Messages?

    Hi. I'm just trying to figure out if there's a way to stop Mail.app from popping up the small preview of messages in the top right corner of the screen when they're first received. I find this incredibly annoying. I've searched thoroughly for a solution to this, but all I can find is how to remove the preview pane, which is not what I need to do. I don't know anything else to call this feature besides a "preview," which makes it hard to search for a solution, since so many of the results center around the preview pane. I would greatly appreciate any help you can offer. Thanks.

    Thanks. I appreciate it. I don't know why this doesn't annoy more people. When I'm working, I get tons of emails around the same time. The last thing I want is to constantly be visually interrupted when the new mail sound suffices. Either way, thanks for the help.

  • How to disable Disk Insertion warning message?

    I'm running OS X 10.4.8 from an external FW drive, reserving the internal HD on my MacBook for Linux. When booting OS X a warning message pops up: "Disk Insertion - The disk you inserted was not readable by this computer" with action buttons Initialize..., Ignore, Eject . This must refer to the internal HD, as OS X apparently can't handle Linux partitions. Hitting Ignore, or waiting a while, makes the message go away.
    My fear is that one of these days I'll hit the Initialize... button by mistake, hosing my Linux partitions in the process. Any gurus out there know how to turn this dangerous (for me) message off?
    N.B. I also posted this message on the MacBook forum, but got no response there... sorry for this, I really want to remove this potential landmine...
    MacBook   Mac OS X (10.4.8)  

    No. If you fail to eject any disk device properly then there's a risk that cached data will not be fully written thus corrupting the device's data.
    This doesn't happen with an iPad or iPod when syncing has stopped because the sync process does not leave cached data unwritten until the device is ejected unless you remove it before a sync has completed. It will happen, however, if you use the iPod in disk mode. The iPad has no default disk mode. You must use a third-party app in order to read or write directly from an iPad. The issue is also academic for iPads and some iPods that do not have disk drives.

  • How to disable Install/Upgrade popup message?

    Hello,
    I just logged into my computer this morning and a popup message tells me to install Java 1.7. Of course I can cancel, but since I have 200 user PC and users should not be using Java 1.7 yet I would like to know can this popup message be disabled?
    Thank you in advance.
    Richard

    I don't think there's much you can do about that apart from maybe disabling all pop-ups in Settings-Safari

  • How to disable the windows update message "Windows update hasn't been able to check for updates for the last 30 days"

    Hi,
    We work on a domain that uses Symantec Management console to administrate our patch enviroment. We have windows updates disabled. But our Windows 8 machines get this message once a month
    "Windows update hasn't been able to check for updates for the last 30 days"
    Just wondering if anyone knows which GPO to use to disable this setting as I have been unable to find it.
    Thanks

    Hi,
    You can turn off the message by GUI in Control Panel\System and Security\Action Center, in the right pane, click "Change Action Center settings", then untick the "Windows Update" option.
    For GPO, you can disable all balloon notifications:
    User Configuration \ Administrative Templates \ Start Menu and Taskbar\Turn off all balloon notifications
    Or remove Action Center icon itself
    User Configuration\Administrative Templates\Start Menu and Taskbar\Remove the Action Center icon
    And I haven't found a GPO to turn on\off a specific message mentioned in the action center, but the setting for the message is related with registry key under
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Action Center\Checks
    but the value under the key is binary, hard to control, if you have interest, you can export the key from a preference pc, then deploy the GPO via
    User Configuration > Preferences > Windows Settings > Registry
    Yolanda Zhu
    TechNet Community Support

  • How to disable Apple Mail Copy message

    After an unsuccessful search for an Apple Mail forum, I will post this here (I miss the old forums--so easy to use):
    I am almost always accidently using "Copy Message" when trying to move a message from my Inbox to a folder. This function is completely useless to me. Is there a way to disable it or remove it from the Message menu?

    No.
    Why don't you simply drag the message to the folder?

  • How to ENABLE detection of duplicate messages in Mavericks Mail?

    Hello,
    There was a good discussion of how to disable detection of duplicate messages in Lion mail - https://discussions.apple.com/message/18265121#18265121
    but unfortunately nothing seems to work to turn them ON in Mavericks.
    In Lion or Mt. Lion I do see duplicate messages - but in Mavericks I do not - but I want to see if there are duplicates for a variety of reasons.
    In the post referenced above none of the command line suggestions seem to make a difference. My mail perference settings are idential on each system, be it Lion, Mr. Lion or Mavericks. Settings as follows:
    Please note 'include related messages' seems to make no difference either way.
    Can anyone please tell me how to display duplicates in Mavericks. Thank you very much in advance.
    E.

    As a quick update, the following command DOES in fact show the duplicates in the mail folder:
              defaults write com.apple.mail AlwaysShowDuplicates -bool true
    So, if there are two exact messages (one sent to me at [email protected] and one forwarded to that email address and sent to me at [email protected], BOTH will show up as separate messages.
    But to be clear, what I want to see is a single message with the '1 Duplicate' indicated in the message header.
    Any way to do that in Mavericks?
    Again, thanks in advance.

  • Disable BAPI Error Popup Message

    Does anyone know how to disable to the popup message that occurs in VC when a BAPI return an error message (message of type E)?  We want to display a default error message to our users, instead of the cryptic ABAP error messages.
    Maximum point awarded to the first correct answer.

    Method 1:
    1. Drag datastore to your storyboard
    2. Right Click datastore and select Configure Element
    3. Click + button to Add new field
    4. Enter Fieldname=SHOWPOPUP, Type=Boolean, Default=false
    5. Click on dataservice that is feeding your message input and drag into the datastore
    6. Right Click on this new data mapping line and select Confgure Element
    7. Click on fx for the SHOWPOPUP field and set the value to TRUE.
    8. Right Click your popup Form and select Configure Element
    9. Click + button to Add new field
    10. Select PUSHBUTTON control and enter field name OK
    11. Double Click the OK fiend to open configuration popup
    12. Select ACTION tab and change radio button to CUSTOM ACTION and enter name HIDEPOPUP
    13. Click on fx on the VISIBILITY CONDITION of the form and select enter formula
    14. enter STORE@SHOWPOPUP as the formula
    15. Click on the OUT port of the popup form and drag line into the datastore
    16. Right Click on this new data mapping line and select Configure Element
    17. Click on fx for the SHOWPOPUP field and set the value to FALSE
    18. Select the dropdown list for the EVENT NAME at the top of the Data Mapping and select HIDEPOPUP as the event.
    19. Select LAYOUT tab and readjust the position of the form over the top of your output table.
    NOTE: you may need to click the BRING TO FRONT icon in lower left with your popup form selected to insure that it is not hidden behind other objects.
    Method 2 :
    There is another option in System action (PROMPT) where u can pass the message that will prompt sucesss or failure message but you have to trigger it by using pushbutton.
    Both the method worked for me sure it will work for u also .
    Regards
    Abdull Hakkim .K

  • Can you disable VIBRATION for viber messages?

    Hi all,
    Does anyone know how to DISABLE vibration for viber messages only? Given the battery life of iphone I wanna save as much as i can of it.
    Please share your thoughts.
    I disabled vibration for TEXT messages but viber still vibrates

    Hi,
    This is an official representative of Viber Media.
    Viber mirrors the device settings, so what you are describing is not a typical behavior.
    Please contact us via: http://bit.ly/ukGVJ0 for further assistance.
    For more questions or technical support, please visit our official HelpDesk.
    Thanks,
    Viber

  • The Apple Mail group my sent and received similar messages in my inbox, how can i disable this? I just want to see the messages i received, not the ones i sent!

    The Apple Mail group my sent and received similar messages in my inbox, how can i disable this? I just want to see the messages i received, not the ones i sent!

    Mail/Preferences/Composing. Do you have the CC myself box checked?

  • How to Disable message area

    Hi ,
       I have a message area and i had linked the "Enable" property of the message area to the context attribute , even if i set the Contex attribute to TRUE the message is still disabled , can some one explain me how to disable message area by linking to the context attribute.
    Regards,
    Ravi.

    HI Shriram,
               Let me explain my problem . I have two tabs in my tab strip control and each tab has its own message area , but the problem is when 2nd tab is selected and if i raise some exception is doesnt show in the message area of the 2nd tab as it is taking the first tab message area as default , so i had put the following logic in the modifyview.
       <b>if(selectedTab.equals("Tab1"))
                 IWDMessageArea Tab2MsgArea =(IWDMessageArea) view.getElement("Tab1MessageArea");
                 Tab2MsgArea.setEnabled(false);
                 IWDMessageArea Tab1MsgArea =(IWDMessageArea) view.getElement("Tab1MessageArea");
                 Tab1MsgArea .setEnabled(true);          
            else
                IWDMessageArea Tab2MsgArea =(IWDMessageArea) view.getElement("Tab1MessageArea");
                 Tab2MsgArea.setEnabled(true);
                 IWDMessageArea Tab1MsgArea =(IWDMessageArea) view.getElement("Tab1MessageArea");
                 Tab1MsgArea .setEnabled(false);
            }</b>
       This logic is working fine for most of the cases , but When i selcect a TAB, in the event handler of the selection, i am performing some logic and raising exceptions, for these exceptions it is not working fine as my event handler is fired first before the "WDModifyView" . Is there any other way to control the "ENABLE" property of the MessageAreas.

Maybe you are looking for

  • Open sales orders

    Hi All, I need to sum up the open sales order quantities to obtain past due and future open orders.can any one help how to get it. -Ram

  • How do i syc my 2 iphone s to a new computer

    How do i syc my 2 iphone s to a new computer. I had to do a new re-ins- on my ibook so all my stuff is delete.

  • XML "Document" tag issue

    In my data xml file, I get data like this: <?xml version='1.0' encoding='UTF-8'?> <Document xmlns='urn:iso:std:iso:20022:tech:xsd:pain.002.001.02' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> In Document tag, because of this: xmlns='urn:iso

  • Note 830576 - Parameter recommendations for Oracle 10g

    hi all DBA experts. I am not good familiar with Oracle database while i read a Note 830576 - Parameter recommendations for Oracle 10g. in which SAP General Recommendation: You should delete obsolete initialization parameters from the profile. To dete

  • What exit is available to change EKPO-EVERS

    Hi What exit is available to change Purchase order line item field Shipping instr(Delivery tab) [EKPO-EVERS] before PO save? Thanks Rama