English Indonesian
By default, only `journald` is installed on your system. You have to install rsyslog youself. Also do not forget to enable and start it after install before continuing with rest of this guide. The `journald` daemon is the primary tool for troubleshooting. It also provides additional data necessary for creating structured log messages. Data acquired by `journald` is forwarded into the `/run/systemd/journal/syslog` socket that may be used by `rsyslogd` to process the data further. However, [application]*rsyslog* does the actual integration by default via the `imjournal` input module, thus avoiding the aforementioned socket. You can also transfer data in the opposite direction, from `rsyslogd` to `journald` with use of `omjournal` module. See xref:Viewing_and_Managing_Log_Files.adoc#s1-interaction_of_rsyslog_and_journal[Interaction of Rsyslog and Journal] for further information. The integration enables maintaining text-based logs in a consistent format to ensure compatibility with possible applications or configurations dependent on `rsyslogd`. Also, you can maintain rsyslog messages in a structured format (see xref:Viewing_and_Managing_Log_Files.adoc#s1-structured_logging_with_rsyslog[Structured Logging with Rsyslog]). Secara default, hanya `journald` yang dipasang pada sistem Anda. Anda harus memasang rsyslog sendiri. Juga jangan lupa untuk mengaktifkan dan memulainya setelah memasang sebelum melanjutkan dengan sisa panduan ini. Daemon `journald` adalah alat utama untuk pemecahan masalah. Ini juga menyediakan data tambahan yang diperlukan untuk membuat pesan log terstruktur. Data yang diperoleh oleh `journald` diteruskan ke soket `/run/systemd/journal/syslog` yang dapat digunakan oleh `rsyslogd` untuk memroses data lebih lanjut. Namun, [application]*rsyslog* melakukan integrasi aktual secara default melalui modul masukan `imjournal`, sehingga menghindari soket yang disebutkan di atas. Anda juga dapat mentransfer data ke arah yang berlawanan, dari `rsyslogd` ke `journald` dengan menggunakan modul `omjournal`. Lihat xref:Viewing_and_Managing_Log_Files.adoc#s1-interaction_of_rsyslog_and_journal[Interaksi Rsyslog dan Jurnal] untuk informasi lebih lanjut. Integrasi ini memungkinkan mempertahankan log berbasis teks dalam format yang konsisten untuk memastikan kompatibilitas dengan kemungkinan aplikasi atau konfigurasi yang bergantung pada `rsyslogd`. Selain itu, Anda dapat memelihara pesan rsyslog dalam format terstruktur (lihat xref:Viewing_and_Managing_Log_Files.adoc#s1-structured_logging_with_rsyslog[Pencatatan Log Terstruktur dengan Rsyslog]).
kern.*
kern.*
cron.!info,!debug
cron.!info,!debug
:pass:quotes[_PROPERTY_], [!]pass:quotes[_COMPARE_OPERATION_], "pass:quotes[_STRING_]"
:pass:quotes[_PROPERTY_], [!]pass:quotes[_COMPARE_OPERATION_], "pass:quotes[_STRING_]"
:msg, contains, "error"
:msg, contains, "error"
:hostname, isequal, "host1"
:hostname, isequal, "host1"
:msg, !regex, "fatal .* error"
:msg, !regex, "fatal .* error"
cron.* /var/log/cron.log
cron.* /var/log/cron.log
_FILTER_ ?_DynamicFile_
_FILTER_ ?_DynamicFile_
$outchannel pass:quotes[_NAME_], pass:quotes[_FILE_NAME_], pass:quotes[_MAX_SIZE_], pass:quotes[_ACTION_]
$outchannel pass:quotes[_NAME_], pass:quotes[_FILE_NAME_], pass:quotes[_MAX_SIZE_], pass:quotes[_ACTION_]
_FILTER_ :omfile:$pass:attributes[{blank}]_NAME_
_FILTER_ :omfile:$pass:attributes[{blank}]_NAME_
$outchannel log_rotation, /var/log/test_log.log, 104857600, /home/joe/log_rotation_script
$outchannel log_rotation, /var/log/test_log.log, 104857600, /home/joe/log_rotation_script
*.* :omfile:$log_rotation
*.* :omfile:$log_rotation
:pass:quotes[_PLUGIN_]:pass:quotes[_DB_HOST_],pass:quotes[_DB_NAME_],pass:quotes[_DB_USER_],pass:quotes[_DB_PASSWORD_];pass:quotes[_TEMPLATE_]
:pass:quotes[_PLUGIN_]:pass:quotes[_DB_HOST_],pass:quotes[_DB_NAME_],pass:quotes[_DB_USER_],pass:quotes[_DB_PASSWORD_];pass:quotes[_TEMPLATE_]
$ModLoad ommysql # Output module for MySQL support
$ModLoad ompgsql # Output module for PostgreSQL support
$ModLoad ommysql # Output module for MySQL support
$ModLoad ompgsql # Output module for PostgreSQL support
cron.* ~
cron.* ~
kern.=crit user1
& ^test-program;temp
& @192.168.0.1
kern.=crit user1
& ^test-program;temp
& @192.168.0.1
$template pass:quotes[_TEMPLATE_NAME_],"pass:quotes[_text %PROPERTY% more text_]", pass:quotes[_OPTION_]
$template pass:quotes[_TEMPLATE_NAME_],"pass:quotes[_text %PROPERTY% more text_]", pass:quotes[_OPTION_]
$template DynamicFile,"/var/log/test_logs/%timegenerated%-test.log"
$template DynamicFile,"/var/log/test_logs/%timegenerated%-test.log"
*.* ?DynamicFile
*.* ?DynamicFile