Changeset 5eb7b854a18db0f58423dfe552cd5d8b836dc328 in xas


Ignore:
Timestamp:
11/26/14 08:52:24 (6 years ago)
Author:
Kevin L. Esteb <kevin@…>
Branches:
master
Children:
1d801d06d4afcbaa7a2af94d43dc511572bfa696
Parents:
923373f451ff8825cb260356023de52919dadd40
git-author:
Kevin L. Esteb <kevin@…> (11/26/14 08:52:24)
git-committer:
Kevin L. Esteb <kevin@…> (11/26/14 08:52:24)
Message:

Changed logstash logging to json logging

Location:
trunk
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r923373f451ff8825cb260356023de52919dadd40 r5eb7b854a18db0f58423dfe552cd5d8b836dc328  
    154154            # create some spool directories 
    155155 
    156             system("mkdir /var/spool/xas/alerts")   unless ( -e '/var/spool/xas/alerts'); 
    157             system("mkdir /var/spool/xas/logstash") unless ( -e '/var/spool/xas/logstash'); 
     156            system("mkdir /var/spool/xas/alerts") unless ( -e '/var/spool/xas/alerts'); 
     157            system("mkdir /var/spool/xas/logs")   unless ( -e '/var/spool/xas/logs'); 
    158158 
    159159            # set ownership/permissions on the files/directories 
     
    166166 
    167167            system("chmod 0664 /var/spool/xas/alerts"); 
    168             system("chmod 0664 /var/spool/xas/logstash"); 
     168            system("chmod 0664 /var/spool/xas/logs"); 
    169169 
    170170        } else { 
     
    194194            system("mkdir $dir") unless ( -e $dir); 
    195195 
    196             $dir = catdir($base, 'var', 'spool', 'logstash'); 
     196            $dir = catdir($base, 'var', 'spool', 'logs'); 
    197197            system("mkdir $dir") unless ( -e $dir); 
    198198 
  • trunk/debian/postinst

    r88e1fdf3718d2a0343df06392234ee953aef9b03 r5eb7b854a18db0f58423dfe552cd5d8b836dc328  
    3838        install -m 755 -d /var/spool/xas 
    3939        install -m 755 -d /var/spool/xas/alerts 
    40         install -m 755 -d /var/spool/xas/logstash 
     40        install -m 755 -d /var/spool/xas/logs 
    4141        # 
    4242        chown -R root:xas /etc/xas 
     
    5151        chmod g+s /var/spool/xas 
    5252        chmod g+s /var/spool/xas/alerts 
    53         chmod g+s /var/spool/xas/logstash 
     53        chmod g+s /var/spool/xas/logs 
    5454        # 
    5555        rm -f /etc/profile.d/xas.bat 
  • trunk/lib/XAS/Constants.pm

    ra44b49dc5d6a1ef85735cfa67215621c6b81a643 r5eb7b854a18db0f58423dfe552cd5d8b836dc328  
    5353 
    5454      LOG_LEVELS   => qr/info|warn|error|fatal|debug|trace/, 
    55       LOG_TYPES    => qr/console|file|logstash|syslog/, 
     55      LOG_TYPES    => qr/console|file|json|syslog/, 
    5656      LOG_FACILITY => qr/auth|authpriv|cron|daemon|ftp|local[0-7]|lpr|mail|news|user|uucp/, 
    5757 
  • trunk/lib/XAS/Lib/Modules/Log.pm

    ra44b49dc5d6a1ef85735cfa67215621c6b81a643 r5eb7b854a18db0f58423dfe552cd5d8b836dc328  
    3434 
    3535my $mixins = { 
    36     console  => 'XAS::Lib::Modules::Log::Console', 
    37     file     => 'XAS::Lib::Modules::Log::File', 
    38     logstash => 'XAS::Lib::Modules::Log::Logstash', 
    39     syslog   => 'XAS::Lib::Modules::Log::Syslog', 
     36    console => 'XAS::Lib::Modules::Log::Console', 
     37    file    => 'XAS::Lib::Modules::Log::File', 
     38    json    => 'XAS::Lib::Modules::Log::JSON', 
     39    syslog  => 'XAS::Lib::Modules::Log::Syslog', 
    4040}; 
    4141 
     
    194194=item B<-type> 
    195195 
    196 The type of the log. This can be "console", "file", "logstash" or "syslog". 
     196The type of the log. This can be "console", "file", "json" or "syslog". 
    197197Defaults to "console". Which means all logging goes to the current terminal. 
    198198 
  • trunk/lib/XAS/Msgs/Base.msg

    r923373f451ff8825cb260356023de52919dadd40 r5eb7b854a18db0f58423dfe552cd5d8b836dc328  
    7575rpc_invid         = the returned id doesn't match the supplied id 
    7676rpc_errorapp      = %s 
     77db_duplicates     => %s: duplicate key found for: %s 
     78db_nocolumn       => %s: no such column for: %s 
     79db_badsyntax      => %s: invalid input syntax for: %s 
     80db_nullcolumn     => %s: null value in column for: %s 
     81db_toolong        => %s: value to long for type: %s 
     82db_open           => %s: unable to access database: %s; reason: %s 
Note: See TracChangeset for help on using the changeset viewer.