[SOLVED] NTOP floods logs

NTOP floods /var/log/user.log and /var/log/errors.log with lines like these
Mar  8 11:05:52 localhost ntop[761]:   **WARNING** packet truncated (10178->8232)
Mar  8 11:05:52 localhost ntop[761]:   **WARNING** packet truncated (13194->8232)
Mar  8 11:05:52 localhost ntop[761]:   **WARNING** packet truncated (10310->8232)
Mar  8 11:05:53 localhost ntop[761]:   **WARNING** packet truncated (8314->8232)
Mar  8 11:05:53 localhost ntop[761]:   **WARNING** packet truncated (8314->8232)
Mar  8 11:05:53 localhost ntop[761]:   **WARNING** packet truncated (8314->8232)
Mar  8 11:05:53 localhost ntop[761]:   **WARNING** packet truncated (8314->8232)
Mar  8 11:05:53 localhost ntop[761]:   **WARNING** packet truncated (8314->8232)
Mar  8 11:05:53 localhost ntop[761]:   **WARNING** packet truncated (8314->8232)
Mar  8 11:05:53 localhost ntop[761]:   **WARNING** packet truncated (8314->8232)
Mar  8 11:05:54 localhost ntop[761]:   **WARNING** packet truncated (27794->8232)
Mar  8 11:05:54 localhost ntop[761]:   **WARNING** packet truncated (23414->8232)
and so on... these log files grow over 400MB.
how can I disable this logging? or what cause this warning?
Last edited by Lenry (2012-03-12 11:39:12)

Gcool wrote:
Packets getting truncated shouldn't be a big deal and can safely be ignored. In order to prevent those messages from flooding your logfiles; you could for example edit your /etc/syslog-ng/syslog-ng.conf (assuming you're using syslog-ng) to not log any messages containing the "packet truncated" string.
So your f_user and f_err filters would become something among the lines of:
filter f_user { facility(user) and not match("packet truncated" value("MESSAGE")); };
filter f_err { level(err) and not match("packet truncated" value("MESSAGE")); };
thank you, it solved it!
how can I mark the topic as "Solved"?
Last edited by Lenry (2012-03-12 10:24:33)

Similar Messages

  • [Solved] - Can't Log In After Upgrade

    Just upgraded and now can't log in. System hangs at 'Reached target Graphical Interace.'
    When I go to tty2 and try to log in, I get 'Log incorrect' error message when trying to log in as normal user or root.
    Re-booted to runlevel 3 and tried to su to normal user. Get 'su: module is unknown' error.
    Checked slim logs and see 'pam_setcred(): module is unknown' error.
    Have re-installed pam and pambase.
    Still can't log in. Appears to be a pam problem, but after many searches, can't find solution. Any ideas?
    Update: I re-installed libgssglue package and that solved the problem. Not certain why that wasn't updated during the pacman -Su command, but I can now log into my system and everything is normal.
    Last edited by twhayes (2013-10-19 19:49:21)

    Hello,
    If you are using SSH, I suspect you are hitting bug ID CSCuc03438:
    The first SSH login password will always fail
    Symptom:
    The first SSH login password will  fail.
    Conditions:
    This issue only applies to SSH logins  on MDS 9100 and 9200 platforms. This includes CLI and SNMP  logins.
    Further Information:
    Upgrading to defective code will  break working applications such as TACACS or  scripts.
    Workaround:
    Use Telnet
    The fix will be in 5.2.6b expected to be available within the next two weeks.
    Best regards,
    Jim

  • [Solved] Unable to log in (xdm), or access tty's (nVidia bug).

    Ok, this is kind of long winded, but I'm really stuck on this one.
    To start, I use xdm as my display manager, which I modified the appearance of (following this: https://wiki.archlinux.org/index.php/XDM) and then later installed xdm-archlinux.
    I also installed the nvidia drivers (via pacman), which resulted in me not being able to see any of my other tty's, however at the time it didn't really bother me and I presumed it would be fixed one day anyway.
    After updating (5th Feb); when I boot up I reach a black screen (presumably a broken xdm) and no way of getting into the system on an alternative tty.
    I've tried starting in runlevel 3, but nvidia modules presumably are still starting and I still can't see anything.
    Any ideas?
    Last edited by NixonInnes (2012-02-07 20:10:46)

    Thanks very much guys, i solved the problem.
    For reference, here's how:
    booted into a live disk
    modified inittab to not fire up a dm
    blacklisted nvidia and nvidia-utils
    removed nouveau from the blacklist
    rebooted
    removed xdm and all settings
    installed slim
    logged in with eye-candy
    switched nvidia and nouveau back around
    reboot
    job done.

  • [solved] SLiM - Cannot log in

    Hello folks,
    I'm having some trouble with SLiM, i.e I can't log into my XFCE4 session.
    I updated my system before it happened (I just remember there was a new version of pulseaudio) but I don't think it is related to my problem.
    It probably comes from the change I've made on my hardware clock...since I had not the right time displayed on my desktop I checked the time using timedatectl and noticed that my timezone was correctly set but that my localtime was set to CET instead  of UTC, thus causing the time displayed on my desktop to be 2 hours ahead.
    I should have used hwclock I guess to set my hardware clock to UTC time but since I needed to reboot for another reason I decided to set it directly into my BIOS. That's what I did : I set my BIOS time 2 hours before in order to synchronize it with UTC time.
    At boot I got some fsck error messages, probably because of my time jump backwards. But the real problem comes when I try to log into my xfce4 session through SLiM. It doesn't work and brings me back to the login screen.
    I've set the hardware clock back to its previous time but I still have the same problem. If I look into journalctl messages about SLiM for the last boot, here is what I think to be problem :
    slim[1222]: xfce4-session: error while loading shared libraries: /usr/lib/libicule.so.50: file too short
    slim[1222]: pam_unix(slim:session): session closed for user sclarckone
    slim[1222]: Server terminated successfully (0). Closing log file.
    Does anybody has an idea of what the problem is and how to solve it ?
    Thanks
    Last edited by sclarckone (2012-12-20 09:15:06)

    rchiang wrote:libicule.so is in icu package. not sure if re-install icu will fix it.
    It worked indeed...I should have tried this before posting here, my bad. Thank you !

  • [SOLVED] xmonad + panel logging applets

    Until recently I used xmonad-log-applet, but after the last update, xmonad is unable to connect to dbus. I get the following error:
    xmonad-x86_64-linux: D-Bus Error (org.freedesktop.DBus.Error.NoReply): Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
    As this is quite a generic message, google wasn't of much help. and I know practically nothing about dbus, so I do not to know where to start looking for the problem. As an alternative I also tried this, which seems to take a simpler approach. But when I try to load it into my (xfce) panel (via XfApplet) I get this message:
    An internal error occurred and the applet could not be loaded.
    which is also quite informative... Starting a "real" gnome panel also doesn't help. Here I have the suspicion of some missing dependencies, although the program compiles just fine.
    Does anyone have some clues?
    Last edited by davvil (2011-04-28 09:19:15)

    I deserve a big facepalm! For the gnome-socket-applet I didn't export the GNOME_SOCKET_APPLET_PORT variable, so the program didn't start. I should have RTFM in more detail. But the socket-applet works at my computer at home, but not on the one at work
    I will mark this topic as solved, as I can use the dbus solution at work and the socket solution at home, but I am still intrigued why the difference arises. If I find the time, I will try to port the gnome-socket-applet to a native xfce panel applet and hopefully it will be more stable.
    BTW I uploaded a PKGBUILD for gnome-socket-applet

  • [SOLVED] Xscreensaver outputs log text above active screensaver

    I'm having problems understanding why this happens. Running the latest xscreensaver and whenever I choose to preview or run a screensaver I get an ugly yellow log-like output either in background or foreground of the active screensaver. Only using
    xscreensaver-demo
    to change settings and starting the xscreensaver daemon from my ~/.xinitrc. A screenshot:
    I've had this problem for a while, so if you people have an idea please share it. Thanks!
    Last edited by hesse (2012-01-03 15:39:53)

    Problem solved: had to change the following X resource setting in ~/.Xresources from true to false:
    xscreensaver.verbose: false
    . Never mind!

  • [solved]KDE strange log in problem .ICEauthority

    When I reboot and go to login I get an error about not being able to login due to write protect on .ICEauthority.
    Now this can be solved, by removing the .ICEauthority files and logging in.
    After a successful login I have.
    ls -la .ICEauthority*
    -rw------- 1 User users 189 2007-09-17 12:15 .ICEauthority
    On a reboot login which fails I have 3 files
    -rw------- 1 root root 189 2007-09-17 12:13 .ICEauthority
    -rw-r--r-- 2 User users 0 2007-09-17 12:13 .ICEauthority-c
    -rw-r--r-- 2 User users 0 2007-09-17 12:13 .ICEauthority-l
    Another strange thing is as user I can remove that first file that is claimed is owned by root.
    So does anyone know how I can fix it, I tried a reinstall of my kde bits, but I'm presuming that .ICEauthority is being created by something else.
    Could someone point me to the right package to try and reinstall please or help me fix it.
    Last edited by FeatherMonkey (2007-09-17 12:33:56)

    Thanks Guys'n'Gals for looking I found the problem I'll leave it in case someone else encounters this.
    I had a script in rc.local that wasn't quite right and for some reason this was causing the problem. Still think it was strange that as a user I could delete this file though.
    Last edited by FeatherMonkey (2007-09-17 12:35:34)

  • [Solved] ntop not working?

    I'm trying to run ntop on on of my boxes at work, but it seems to dissapear as soon as it goes into daemon mode...
    In /var/log/ntop.log:
    Thu Jan 17 10:27:57 2008 Initializing ntop
    Thu Jan 17 10:27:57 2008 No patterns to load: protocol guessing disabled.
    Thu Jan 17 10:27:57 2008 Checking eth1 for additional devices
    Thu Jan 17 10:27:57 2008 Resetting traffic statistics for device eth1
    Thu Jan 17 10:27:57 2008 Initializing device eth1 (0)
    Thu Jan 17 10:27:57 2008 DLT: Device 0 [eth1] is 1, mtu 1514, header 14
    Thu Jan 17 10:27:57 2008 Initializing gdbm databases
    Thu Jan 17 10:27:57 2008 VENDOR: Loading MAC address table.
    Thu Jan 17 10:27:57 2008 VENDOR: Checking for MAC address table file
    Thu Jan 17 10:27:57 2008 VENDOR: File '/etc/ntop/specialMAC.txt.gz' does not need to be reloaded
    Thu Jan 17 10:27:57 2008 VENDOR: ntop continues ok
    Thu Jan 17 10:27:57 2008 VENDOR: Checking for MAC address table file
    Thu Jan 17 10:27:57 2008 VENDOR: File '/etc/ntop/oui.txt.gz' does not need to be reloaded
    Thu Jan 17 10:27:57 2008 VENDOR: ntop continues ok
    Thu Jan 17 10:27:57 2008 Fingerprint: Loading signature file
    Thu Jan 17 10:27:57 2008 Fingerprint: Checking for Fingerprint file... file
    Thu Jan 17 10:27:57 2008 Fingerprint: Loading file '/etc/ntop/etter.finger.os.gz'
    Thu Jan 17 10:27:57 2008 Fingerprint: ...loaded 1765 records
    Thu Jan 17 10:27:57 2008 INIT: Bye bye: I'm becoming a daemon...
    Thu Jan 17 10:27:57 2008 INIT: Parent process is exiting (this is normal)
    Once it finishes this sequence, 'ps -ef' reveals not a single ntop process.
    From /etc/conf.d/ntop:
    # Paramaters passed to ntop by init
    # -d -- to daemonize. (without this, the init script will not work)
    # Parameters to be passed to ntop
    # -i -- comma separated list of interfaces to monitor
    # -w -- port to listen on (default 3000)
    NTOP_ARGS="-d -i eth1 -w 3000"
    # Log file for ntop
    NTOP_LOG="/var/log/ntop.log"
    I added the '-d' myself, but that seems to make no difference.
    Because there is no 'ntop' process running, naturally the webserver http://localhost:3000 isn't running either.
    What on earth am I missing or doing wrong?
    Last edited by ReaphSharc (2008-01-31 15:01:48)

    1) delete ntop admin password is exist:
    # rm /var/ntop/ntop_pw.db
    2) only in first run add admin password with:
    # ntop -A
    3) start as daemon service
    # /etc/rc.d/ntop start
    salu2 --cesar

  • [SOLVED]Problem with logging in after system upgrade

    Hi,
    I'm encountering some problem after rebooting my machine just after last upgrade. Few minutes ago I was sure I found the source of the problem when system hang on "Reached target Graphical Interface" message. Reason - nvidia drivers had to be replaced with legacy version (https://www.archlinux.org/news/nvidia-340xx-and-nvidia/). But it didn't help. Also it made things a little bit worse. Because now my system uses nvidia-340xx and it seems drivers are fine but when login screen of lightdm should appear screens stay blank... and nothing happens. I simply can't do anything.
    What I noticed is also xfce4-session was upgraded (4.10.1.3->4.10.1-5) and maybe this is the separate problem? but I can't downgrade this package as some time ago I removed all contents of /var/cache/pacman/pkg.
    What I have is arch on pendrive so I can chroot into existing system.
    Any ideas?
    Last edited by jakub (2014-10-08 22:09:02)

    I found something similar to line
    (EE) Mar 07 14:05:07 NVIDIA(0): WAIT: (E, 0, 0x837d, 0)
    these values are not exact as I'm too tired now to rewrite the real ones from screen 
    maybe I should install some older nvidia drivers (these 340xx are broken somehow I think). Unfortunately I don't have my /pkg content anymore.
    Where can I download packages like nvidia-340.32-1-x86_64.pkg.tar.xz from? (according to pacman.log I had this version back in July and it was working fine I think).
    I could also start X with Nouveau drivers but not xfce (anyway I would like to install old nvidia drivers back)
    Last edited by jakub (2014-10-08 22:03:11)

  • [Solved] Too much logging to journal with KDE 5 / Plasma 5?

    Hello
    Ever since I upgraded to latest KDE I see lots of logging in journal.
    It logs data even when I press Alt-TAB!!
    Feb 03 12:04:34 amish kdeinit5[2790]: Handler: 0
    Feb 03 12:04:34 amish kdeinit5[2790]: Exclude: 0x0 Match? false
    Feb 03 12:04:34 amish kdeinit5[2790]: false
    Feb 03 12:04:34 amish kdeinit5[2790]: Gesture ungrab
    Feb 03 12:04:34 amish kdeinit5[2790]: Enabled: false
    Feb 03 12:04:34 amish kdeinit5[2790]: Handler: 0
    Feb 03 12:04:34 amish kdeinit5[2790]: Exclude: 0x0 Match? false
    Feb 03 12:04:34 amish kdeinit5[2790]: false
    Feb 03 12:04:34 amish kdeinit5[2790]: Gesture ungrab
    Feb 03 12:04:34 amish kwin_x11[2818]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 50992, resource id: 25167105, major code: 18 (ChangeProperty), minor code: 0
    Feb 03 12:05:06 amish kglobalaccel5[2802]: Got XKeyPress event
    Feb 03 12:05:06 amish kglobalaccel5[2802]: "Alt+Tab" = "Walk Through Windows"
    Feb 03 12:05:06 amish kwin_x11[2818]: areKeySymXsDepressed: any of 2
    Feb 03 12:05:06 amish kwin_x11[2818]: 0 : keySymX=0x "ffe9" i= 8 mask=0x "1" keymap[i]=0x "1"
    Feb 03 12:05:06 amish kdeinit5[2790]: Enabled: false
    Feb 03 12:05:06 amish kdeinit5[2790]: Handler: 0
    Feb 03 12:05:06 amish kdeinit5[2790]: Exclude: 0x0 Match? false
    Feb 03 12:05:06 amish kdeinit5[2790]: false
    Feb 03 12:05:06 amish kdeinit5[2790]: Gesture ungrab
    Feb 03 12:05:06 amish kglobalaccel5[2802]: Got XKeyPress event
    Feb 03 12:05:06 amish kglobalaccel5[2802]: "Alt+Tab" = "Walk Through Windows"
    Feb 03 12:05:06 amish kwin_x11[2818]: areKeySymXsDepressed: any of 2
    Feb 03 12:05:06 amish kwin_x11[2818]: 0 : keySymX=0x "ffe9" i= 8 mask=0x "1" keymap[i]=0x "1"
    Feb 03 12:05:06 amish kdeinit5[2790]: Enabled: false
    Feb 03 12:05:06 amish kdeinit5[2790]: Handler: 0
    Feb 03 12:05:06 amish kdeinit5[2790]: Exclude: 0x0 Match? false
    Feb 03 12:05:06 amish kdeinit5[2790]: false
    Feb 03 12:05:06 amish kdeinit5[2790]: Gesture ungrab
    If you select something in konsole and right click anywhere in "konsole" then that is also logged
    Feb 03 12:12:07 amish konsole[2950]: org.kde.kurlfilter-ikws: "Feb 03 12:05:06"
    How do I disable this debugging?
    Could not get much information from Google.
    Last edited by amish (2015-02-09 15:16:01)

    Instead of disabling all logs. Here is better solution is to disable just debug output:
    QT_LOGGING_RULES="*.debug=false"
    export QT_LOGGING_RULES
    Instead of putting in /etc/environment file, its put in /usr/bin/startkde
    From: https://git.reviewboard.kde.org/r/12190 … 8977line12
    Hopefully it will be in next KDE release.
    Also adding above made KDE a bit faster and more responsive on my system.
    Last edited by amish (2015-02-09 15:14:44)

  • [SOLVED] Can't log into tty1

    This started some time while I was setting up X: When I try to log into tty1 (tty2 to tty6 works), it gives some error message and logs out immediately. Since it clears the screen after logging out, I can't make out any more of the error message than "/etc/X11". How do I figure out what's happening, or if someone knows what's wrong, how do I fix it?
    Last edited by howardh (2012-11-13 06:03:02)

    There seems to be a seg fault in there, but I have no idea what it means.
    [ 41.304] (**) ThinkPad Extra Buttons: always reports core events
    [ 41.304] (**) evdev: ThinkPad Extra Buttons: Device: "/dev/input/event5"
    [ 41.304] (--) evdev: ThinkPad Extra Buttons: Vendor 0x17aa Product 0x5054
    [ 41.304] (--) evdev: ThinkPad Extra Buttons: Found keys
    [ 41.304] (II) evdev: ThinkPad Extra Buttons: Configuring as keyboard
    [ 41.304] (**) Option "config_info" "udev:/sys/devices/platform/thinkpad_acpi/input/input5/event5"
    [ 41.304] (II) XINPUT: Adding extended input device "ThinkPad Extra Buttons" (type: KEYBOARD, id 12)
    [ 41.304] (**) Option "xkb_rules" "evdev"
    [ 41.304] (**) Option "xkb_model" "evdev"
    [ 41.304] (**) Option "xkb_layout" "us"
    [ 520.244] (EE)
    [ 520.244] (EE) Backtrace:
    [ 520.247] (EE) 0: /usr/bin/X (xorg_backtrace+0x36) [0x58a006]
    [ 520.247] (EE) 1: /usr/bin/X (0x400000+0x18de59) [0x58de59]
    [ 520.247] (EE) 2: /usr/lib/libpthread.so.0 (0x7fa9ea419000+0xf1a0) [0x7fa9ea4281a0]
    [ 520.248] (EE) 3: /usr/bin/X (0x400000+0x4d7d0) [0x44d7d0]
    [ 520.248] (EE) 4: /usr/bin/X (0x400000+0x142ef8) [0x542ef8]
    [ 520.248] (EE) 5: /usr/bin/X (0x400000+0x13d474) [0x53d474]
    [ 520.248] (EE) 6: /usr/bin/X (mieqProcessDeviceEvent+0x1b5) [0x56b795]
    [ 520.248] (EE) 7: /usr/bin/X (0x400000+0x2f4bc) [0x42f4bc]
    [ 520.248] (EE) 8: /usr/bin/X (DisableDevice+0xbc) [0x430c6c]
    [ 520.248] (EE) 9: /usr/bin/X (0x400000+0x31152) [0x431152]
    [ 520.248] (EE) 10: /usr/bin/X (0x400000+0x26935) [0x426935]
    [ 520.248] (EE) 11: /usr/lib/libc.so.6 (__libc_start_main+0xf5) [0x7fa9e90b8725]
    [ 520.248] (EE) 12: /usr/bin/X (0x400000+0x26c6d) [0x426c6d]
    [ 520.248] (EE)
    [ 520.248] (EE) Segmentation fault at address 0xd0
    [ 520.248]
    Fatal server error:
    [ 520.248] Caught signal 11 (Segmentation fault). Server aborting
    [ 520.248]
    [ 520.248] (EE)
    Please consult the The X.Org Foundation support
    at http://wiki.x.org
    for help.
    [ 520.248] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
    [ 520.249] (EE)
    [ 520.266] (II) evdev: TPPS/2 IBM TrackPoint: Close
    [ 520.266] (II) UnloadModule: "evdev"
    [ 520.280] (II) evdev: ThinkPad Extra Buttons: Close
    [ 520.280] (II) UnloadModule: "evdev"
    [ 520.280] (II) UnloadModule: "synaptics"
    [ 520.280] (II) evdev: AT Translated Set 2 keyboard: Close
    [ 520.280] (II) UnloadModule: "evdev"
    [ 520.280] (II) evdev: Integrated Camera: Close
    [ 520.280] (II) UnloadModule: "evdev"
    [ 520.280] (II) evdev: Power Button: Close
    [ 520.280] (II) UnloadModule: "evdev"
    [ 520.280] (II) evdev: Power Button: Close
    [ 520.280] (II) UnloadModule: "evdev"
    [ 520.748] Server terminated with error (1). Closing log file.

  • UWSGI PHP OwnCloud Flooding Logs

    I have searched and searched and for the life of me can not figure out how to set the log level for uWSGI.
    uwsgi_php sends to Journald every single GET, POST, everything....
    EDIT: Well adding --disable-logging to the EXEC command in [email protected] stops all logs... far from ideal but better then before
    ~>>> grep log /etc/uwsgi/owncloud.ini | grep -v 'php-allowed-ext'
    loglevel = warn
    ~>>> grep log /etc/nginx/nginx.conf
    error_log /var/log/nginx/error.log;
    #error_log /var/log/nginx/notice.log notice;
    #error_log /var/log/nginx/info.log info;
    #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
    access_log /var/log/nginx/access.log;
    ~>>> grep log /usr/share/webapps/owncloud/config/config.php
    'log_type' => 'owncloud',
    'logfile' => '',
    'loglevel' => '2',
    'logdateformat' => 'F d, Y H:i:s',
    'logtimezone' => 'Etc/UTC',
    'log_query' => false,
    'log_authfailip' => false,
    'log_rotate_size' => false,
    'remember_login_cookie_lifetime' => 1296000,
    ~>>> grep log /etc/php/php.ini
    ; log_errors
    ; Error handling and logging ;
    ; It's recommended that errors be logged on production servers rather than
    ; Besides displaying errors, PHP can also log errors to locations such as a
    ; server-specific log, STDERR, or a location specified by the error_log
    ; servers they should still be monitored and logging is a great way to do that.
    ; http://php.net/log-errors
    log_errors = On
    ; Set maximum length of log_errors. In error_log information about the source is
    ; http://php.net/log-errors-max-len
    log_errors_max_len = 1024
    ; Do not log repeated messages. Repeated errors must occur in same file on same
    ; is On you will not log errors with repeated messages from different files or
    ; stdout or in the log). This has only effect in a debug compile, and if
    ; When PHP displays or logs an error, it has the capability of formatting the
    ; http://php.net/error-log
    ;error_log = php_errors.log
    ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
    ;error_log = syslog
    ; Disable logging through FastCGI connection. PHP's default behavior is to enable
    ;fastcgi.logging = 0
    ; The path to a log file that will log all mail() calls. Log entries include
    ;mail.log =
    ; Log mail to syslog (Event Log on NT, not valid in Windows 95).
    ;mail.log = syslog
    ; Notice message logging require a little overheads.
    ; Unless pgsql.ignore_notice=0, module cannot log notice message.
    ; http://php.net/pgsql.log-notice
    pgsql.log_notice = 0
    ;sybct.login_timeout=
    ; OPcache error_log file name. Empty string assumes "stderr".
    ;opcache.error_log=
    ; All OPcache errors go to the Web server log.
    ; By default, only fatal errors (level 0) or errors (level 1) are logged.
    ;opcache.log_verbosity_level=1
    Last edited by hunterthomson (2014-01-19 20:48:12)

    Are you running a syslog daemon or just plain systemd?
    By the way, dcron supports setting a loglevel (not individually though). Maybe you want to give it a try.

  • [SOLVED] journald not logging

    Hi all,
    I am really confused, since journald is not logging anything. Actually there is no log file at all. I did not change anything, so I have no idea what's going on. So, do you have an idea, what I should try next (re-installing the packets didn't fix the problem).
    Thank's in advance!!
    no log files:
    % journalctl -xn
    No journal files were found.
    The reason is that, journald is not running.
    % systemctl --failed
    UNIT LOAD ACTIVE SUB DESCRIPTION
    ● systemd-journal-flush.service loaded failed failed Trigger Flushing of Journal to Persistent Storage
    ● systemd-journald.service loaded failed failed Journal Service
    ● systemd-journald.socket loaded failed failed Journal Socket
    LOAD = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB = The low-level unit activation state, values depend on unit type.
    The status for the journald-service is:
    % systemctl status systemd-journald.service :(
    ● systemd-journald.service - Journal Service
    Loaded: loaded (/etc/systemd/system/systemd-journald.service; static)
    Active: failed (Result: start-limit) since Sat 2014-09-27 14:20:03 CEST; 4h 9min ago
    Docs: man:systemd-journald.service(8)
    man:journald.conf(5)
    Process: 432 ExecStart=/usr/lib/systemd/systemd-journald (code=exited, status=1/FAILURE)
    Main PID: 432 (code=exited, status=1/FAILURE)
    Status: "Shutting down..."
    and the status of the socket
    % systemctl status systemd-journald.socket :(
    ● systemd-journald.socket - Journal Socket
    Loaded: loaded (/etc/systemd/system/systemd-journald.socket; static)
    Active: failed (Result: service-failed-permanent) since Sat 2014-09-27 14:20:03 CEST; 4h 9min ago
    Docs: man:systemd-journald.service(8)
    man:journald.conf(5)
    Listen: /run/systemd/journal/stdout (Stream)
    /run/systemd/journal/socket (Datagram)
    /dev/log (Datagram)
    Last edited by mkind (2014-09-28 15:30:00)

    hm.. here my output of the service:
    % cat /etc/systemd/system/systemd-journald.service
    # This file is part of systemd.
    # systemd is free software; you can redistribute it and/or modify it
    # under the terms of the GNU Lesser General Public License as published by
    # the Free Software Foundation; either version 2.1 of the License, or
    # (at your option) any later version.
    [Unit]
    Description=Journal Service
    Documentation=man:systemd-journald.service(8) man:journald.conf(5)
    DefaultDependencies=no
    Requires=systemd-journald.socket
    After=systemd-journald.socket syslog.socket
    Before=sysinit.target
    [Service]
    ExecStart=/usr/lib/systemd/systemd-journald
    Restart=always
    RestartSec=0
    NotifyAccess=all
    StandardOutput=null
    CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID
    WatchdogSec=1min
    # Increase the default a bit in order to allow many simultaneous
    # services being run since we keep one fd open per service.
    LimitNOFILE=16384
    and pacman says they are owned by no package
    % pacman -Qo /{usr/lib,etc}/systemd/system/systemd-journald.{service,socket}
    /usr/lib/systemd/system/systemd-journald.service is owned by systemd 216-3
    /usr/lib/systemd/system/systemd-journald.socket is owned by systemd 216-3
    error: No package owns /etc/systemd/system/systemd-journald.service
    error: No package owns /etc/systemd/system/systemd-journald.socket
    actually no package owns any of the services in /etc/systemd/system/.
    Last edited by mkind (2014-09-28 13:29:31)

  • [SOLVED] Writting to log file on Oracle AS in ADF BC

    Hi!
    I'm trying to write some information to any of the log files on Oracle Application Server but can't seem to get it working.
    I have a http servlet class in which I try to log records like this:
    Logger loLogger = Logger.getAnonymousLogger();
    loLogger.info("HttpServlet: doGet start!");This code displays
    1.4.2008 9:44:02 package.HttpServlet doGet
    INFO: HttpServlet: doGet start!
    in JDeveloper output window, but after deployment to AS it is not written to any of the files. I do not use a custom logger or log files in my application so my question is: how can I write information to any of the log files on AS (for example logs in <ORACLE_HOME>\opmn\logs folder or in log.xml file in oc4j folder of j2ee home log)?
    I've been reading about j2ee logging but as I said, can't get it to work. Are there any ADF classes to do this?
    Thanks,
    regards!

    Hi!
    Thank you both for your effort. Both ways work now, I messed something up at the beginning.
      Logger loLogger = Logger.getAnonymousLogger();
        loLogger.info("method start!");writes to 'default_group~home~default_group~1.log' file in opmn/logs directory, while
      ADFLogger loADFLogger = ADFLogger.createADFLogger("oracle");
        loADFLogger.log(ADFLogger.NOTIFICATION, "method start!");writes to 'log.xml' in j2ee\home\log\home_default_group_1\oc4j directory.
    Now I just have to decide which is better for me ;).
    BB

  • SOLVED 0 users logged in

    Hello!
    While I am logged in my system and I execute 'uptime', I get the following message:
    00:12:28 up 5:16, 0 users, load average: 0.04, 0.17, 0.14
    The same happens running 'w' and 'who' is not showing any users.
    I am using xmonad and urxvt.
    If I switch to a tty and login from there, things run normal and my login is counted.
    Can you help me troubleshoot this?
    Last edited by aouaou (2009-12-15 22:31:13)

    kgas wrote:
    noticed the same with sakura terminal, using slim to log in to openbox session.
    12:12:03 up 4 days, 39 min,  0 users,  load average: 0.03, 0.14, 0.23
    In slim wiki:
    Login information with SLiM
    By default, SLiM fails to log logins to utmp and wtmp which causes who, last, etc. to misreport login information. To fix this edit your slim.conf as follows:
    sessionstart_cmd    /usr/bin/sessreg -a -l $DISPLAY %user
    sessionstop_cmd     /usr/bin/sessreg -d -l $DISPLAY %user

Maybe you are looking for

  • Adobe Flash Player 11.5.502.135 Active X failing

    Adobe Flash Player 11.5.502.135 Active X failing through SCCM 2007. Tried to use uninstaller but that too is failing... i am trying to push this to 3500 machine but on 1700 machine Adobe flash player is not getting installed and the error message whi

  • Cant deploy composite application on soa server environment

    hi, Both managed server and admin server in running statusl thati could see in weblogic console by selecting servers. But while deploying my composite application i could not find soa server option there. i could sucessfuly established the connection

  • Published? But now iWeb won't open!

    I'm using iWeb v.3.0.3.  I put together a website and published it.  When I checked online, I got a 404 error.  When I tried to reopen iWeb, it apparently lanched, but I never got the window, just the inspector, font and color pallettes.  I published

  • What is causing panics on Macbook Pro 4,1

    Hello, My Dad was having very frequent crashes on his Mabook Pro 4,1 runing Snow Leopard. Below is one of the reports I was hoping someone could interpret. His computer will not start anymore now. Can't even boot to single user mode. Thinking it's a

  • Auto sync my iPod -a little help, please?

    Hi, Just got a 60gb 5th gen iPod a month ago, and enjoying it very much -BUT... I'm still trying to decode iTunes, to figure out how it works, because in my humble opinion, it *****! I spent quite a lot of time converting videos, so they would be pla