Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  rsyslog,d

    Posted Tue September 26, 2023 08:31 AM
    Edited by SysAdmin Fri October 04, 2024 04:55 AM

    we have installed rsyslog but it's not creating the /etc/rsyslog.d and /etc/logrotate.d. so please help us how to install it. Our requirement is to enable content-based filtering from multiple file as well as multiple log file rotation.



    ------------------------------
    SysAdmin
    ------------------------------


    #AIXOpenSource


  • 2.  RE: rsyslog,d

    Posted Tue September 26, 2023 09:09 AM

    Can you elaborate more? What is the problem you see in having /etc/rsyslog.d & /etc/logrotate.d ? 



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: rsyslog,d

    Posted Fri October 04, 2024 04:42 AM
    Edited by SysAdmin Fri October 04, 2024 04:58 AM
    $ModLoad imfile
    $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
    $InputFileName /logfile1.debug
    $InputFileReadMode "inotify"
    $InputFileTag LOG1
    $InputFileStateFile Log1.State
    $InputFileSeverity info
    $InputFileFacility local7
    $InputRunFileMonitor
    if $msg contains "I-MON" then /log/logfile1.debug
    :msg, contains, "MON" stop
     
    $ModLoad imfile
    $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
    $InputFileName /logfile2.debug
    $InputFileReadMode "inotify"
    $InputFileTag LOG2
    $InputFileStateFile Log2.State
    $InputFileSeverity info
    $InputFileFacility local7
    $InputRunFileMonitor
    if $msg contains "I-MON1" then /log/logfile2.debug
    :msg, contains, "MON" stop

    We are facing issue with duplication in filtered logs whenever the source file is getting purged

    /logfile1.debug

    /logfile2.debug



    ------------------------------
    SysAdmin
    ------------------------------



  • 4.  RE: rsyslog,d

    Posted Mon October 16, 2023 03:58 AM
    Edited by Ayappan P Mon October 23, 2023 03:32 AM

    If you want to customize rsyslog's configuration and implement content-based filtering from multiple log files with log rotation, you should disable the automatic generation of configuration directories. If you're on the hunt for a fast editing service, your search leads you to the right place. This https://www.grabmyessay.com/fast-essay-writing platform is not just a hub for dissertation editing, but it also offers a comprehensive array of top-notch writing services. You'll find an extensive collection of evaluations and reviews, making it a fantastic starting point for anyone seeking academic assistance. With a wealth of insights, you can easily pinpoint the ideal online essay editing service to tackle your college assignments.


    #AIXOpenSource