For more on the protocol: https://www.rsyslog.com/doc/master/configuration/modules/imrelp.html
For client/server to communicate over RELP protocol (over TCP), both should have the corresponding library present:
apt-get install rsyslog-relp
For more on the protocol: https://www.rsyslog.com/doc/master/configuration/modules/imrelp.html
For client/server to communicate over RELP protocol (over TCP), both should have the corresponding library present:
apt-get install rsyslog-relp
| package com.example.scratch_java; | |
| import java.io.IOException; | |
| import java.nio.charset.Charset; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.Date; | |
| import java.util.List; | |
| import java.util.function.Function; |
| #include <iostream> | |
| #include <vector> | |
| #include <atomic> | |
| #include <memory> | |
| #include <stdexcept> | |
| using namespace std; | |
| namespace { |
| #include <sys/types.h> | |
| #include <dirent.h> | |
| #include <cerrno> | |
| #include <string> | |
| #include <iostream> | |
| #include <iomanip> | |
| using namespace std; | |
| static const char* describe(const struct dirent * entry) |
| /** | |
| * Search for key and return index inside a[0..n-1]. | |
| * If key does not exist, return -1. | |
| * | |
| * Precondition: The array a[0..n-1] is sorted | |
| */ | |
| int binary_search(int a[], int n, int key) | |
| { | |
| int start = 0, end = n; |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <Configuration> | |
| <Appenders> | |
| <Console name="console"> | |
| <PatternLayout pattern="%highlight{%d{HH:mm:ss.SSS} %-5level %logger{36}.%M() @%L - %msg%n}"/> | |
| </Console> | |
| <!-- Note: |
| import bcrypt | |
| encrypted_password = bcrypt.hashpw(password.encode('utf8'), bcrypt.gensalt(rounds = 10, prefix=b"2a")) |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <version>1.6.0</version> | |
| <executions> | |
| <!-- Start H2 server --> | |
| <execution> | |
| <id>h2-server</id> | |
| <goals> | |
| <goal>java</goal> |