<commit_before>/* 
 * File:   cobject.h
 * Author: <NAME>
 *
 */

#ifndef COBJECT_H
#define	COBJECT_H

#include "main.h"
#include "config.h"

using namespace std;

class CollectorObject {
public:
    
    //
    static string node_id;
    static string sensor_id;
    
    static char active_response[OS_HEADER_SIZE];
    static char update_remote[OS_HEADER_SIZE];
    
    static bool arStatus;
    static bool urStatus;
    
    static int timezone;
    static int log_size;
    static char log_path[OS_BUFFER_SIZE]; 
    
    static long startup_timer;
    static long gosleep_timer;
    static long update_timer;
        
    // Wazuh config parameters
    static char wazuh_host[OS_HEADER_SIZE];
    static int wazuh_port;
    static char wazuh_user[OS_HEADER_SIZE];
    static char wazuh_pwd[OS_HEADER_SIZE];
    
    static bool wazuhServerStatus;
    
    static char falco_log[OS_BUFFER_SIZE]; 
    static int falcolog_status;
    static char suri_log[OS_BUFFER_SIZE]; 
    static int surilog_status;
    static char wazuh_log[OS_BUFFER_SIZE];
    static int wazuhlog_status;
    static char modsec_log[OS_BUFFER_SIZE];
    static int modseclog_status;
    
    static char falco_conf[OS_BUFFER_SIZE]; 
    static char falco_local[OS_BUFFER_SIZE];
    static char falco_rules[OS_BUFFER_SIZE];
        
    static char suri_conf[OS_BUFFER_SIZE]; 
    static char suri_local[OS_BUFFER_SIZE];
    static char suri_rules[OS_BUFFER_SIZE];
    
    static char wazuh_conf[OS_BUFFER_SIZE];
    static char wazuh_local[OS_BUFFER_SIZE];
    static char wazuh_rules[OS_BUFFER_SIZE];
        
    static char modsec_conf[OS_BUFFER_SIZE];
    static char modsec_local[OS_BUFFER_SIZE];
    static char modsec_rules[OS_BUFFER_SIZE];
    
    char collector_time[OS_DATETIME_SIZE]; 
    
    //Syslog info string
    static char SysLogInfo[OS_LONG_HEADER_SIZE];
    
    CollectorObject () {
        node_id.clear();
        sensor_id.clear();
        wazuhServerStatus = true;
        arStatus = false;
        urStatus = true;
        falcolog_status = true;
        surilog_status = true;
        wazuhlog_status = true;
        modseclog_status = true;
        timezone = 0;
        log_size = 0;
        startup_timer = 0;
        gosleep_timer = 0;
        update_timer = 0;
        wazuh_port = 0;
    }
    
    string GetNodeId()  { return node_id; }
    virtual int GetConfig();
    <commit_msg>fix sensors status for log<commit_after>/* 
 * File:   cobject.h
 * Author: <NAME>
 *
 */

#ifndef COBJECT_H
#define	COBJECT_H

#include "main.h"
#include "config.h"

using namespace std;

class CollectorObject {
public:
    
    //
    static string node_id;
    static string sensor_id;
    
    static char active_response[OS_HEADER_SIZE];
    static char update_remote[OS_HEADER_SIZE];
    
    static bool arStatus;
    static bool urStatus;
    
    static int timezone;
    static int log_size;
    static char log_path[OS_BUFFER_SIZE]; 
    
    static long startup_timer;
    static long gosleep_timer;
    static long update_timer;
        
    // Wazuh config parameters
    static char wazuh_host[OS_HEADER_SIZE];
    static int wazuh_port;
    static char wazuh_user[OS_HEADER_SIZE];
    static char wazuh_pwd[OS_HEADER_SIZE];
    
    static bool wazuhServerStatus;
    
    static char falco_log[OS_BUFFER_SIZE]; 
    static int falcolog_status;
    static char suri_log[OS_BUFFER_SIZE]; 
    static int surilog_status;
    static char wazuh_log[OS_BUFFER_SIZE];
    static int wazuhlog_status;
    static char modsec_log[OS_BUFFER_SIZE];
    static int modseclog_status;
    
    static char falco_conf[OS_BUFFER_SIZE]; 
    static char falco_local[OS_BUFFER_SIZE];
    static char falco_rules[OS_BUFFER_SIZE];
        
    static char suri_conf[OS_BUFFER_SIZE]; 
    static char suri_local[OS_BUFFER_SIZE];
    static char suri_rules[OS_BUFFER_SIZE];
    
    static char wazuh_conf[OS_BUFFER_SIZE];
    static char wazuh_local[OS_BUFFER_SIZE];
    static char wazuh_rules[OS_BUFFER_SIZE];
        
    static char modsec_conf[OS_BUFFER_SIZE];
    static char modsec_local[OS_BUFFER_SIZE];
    static char modsec_rules[OS_BUFFER_SIZE];
    
    char collector_time[OS_DATETIME_SIZE]; 
    
    //Syslog info string
    static char SysLogInfo[OS_LONG_HEADER_SIZE];
    
    CollectorObject () {
        node_id.clear();
        sensor_id.clear();
        wazuhServerStatus = true;
        arStatus = false;
        urStatus = true;
        timezone = 0;
        log_size = 0;
        startup_timer = 0;
        gosleep_timer = 0;
        update_timer = 0;
        wazuh_port = 0;
    }
    
    string GetNodeId()  { return node_id; }
    virtual int GetConfig();
    
{'fraction_non_alphanumeric': 0.06961349562246423, 'fraction_numerical': 0.0025624599615631004, 'mean_word_length': 2.817440912795436, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '710001', 'n_tokens_mistral': 1585, 'n_tokens_neox': 1554, 'n_words': 350}