<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36160</bug_id>
          
          <creation_ts>2019-02-23 17:11:45 +0300</creation_ts>
          <short_desc>rsyslog не может разобрать конфиг</short_desc>
          <delta_ts>2022-03-22 18:49:30 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rsyslog-classic</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>33000</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Антон Мидюков">antohami</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>admin1</cc>
    
    <cc>ave4600</cc>
    
    <cc>cas</cc>
    
    <cc>iv</cc>
    
    <cc>mike</cc>
    
    <cc>serjigva</cc>
    
    <cc>shaba</cc>
    
    <cc>shevtsov.anton</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>178865</commentid>
    <comment_count>0</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2019-02-23 17:11:45 +0300</bug_when>
    <thetext>В логе загрузки сообщение:
rsyslogd: rsyslogd: error during parsing file /etc/syslog.conf, on or before line 68: warnings occured in file &apos;/etc/syslog.conf&apos; around line 68 [v8.1901.0 try https://www.rsyslog.com/e/2207 ]

67 и 68 строки:
# Everybody gets emergency messages
*.emerg							*

Конфиг из пакета rsyslog-classic. Не редактировался.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185182</commentid>
    <comment_count>1</comment_count>
    <who name="Nicom">admin1</who>
    <bug_when>2019-10-29 22:12:32 +0300</bug_when>
    <thetext>Вероятно, на основании man rsyslog.conf,
&lt;-- Everyone logged on
       Emergency messages often go to all users currently online to notify them that something strange is happening with the system. To specify this wall(1)-feature use an &quot;:omusrmsg:*&quot;. -&gt;&gt;

строку 68 файла /etc/syslog.conf следует привести к виду

*.emerg                           :omusrmsg:*



После этой процедуры на P9 starterkit server пропала ошибка в /var/log/messages, но я не могу проверить работоспособность этой строки.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185221</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2019-10-31 19:44:26 +0300</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; *.emerg                           :omusrmsg:*
&gt; После этой процедуры на P9 starterkit server пропала ошибка в
&gt; /var/log/messages, но я не могу проверить работоспособность этой строки.
В смысле logger -p user.emerg &quot;emergency test&quot; не работает? :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185229</commentid>
    <comment_count>3</comment_count>
    <who name="Nicom">admin1</who>
    <bug_when>2019-11-01 07:59:16 +0300</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; В смысле logger -p user.emerg &quot;emergency test&quot; не работает? :)
Я не настолько глубоко знаю систему и назначение emerg сообщений.
Проверил, работает, сообщение попадает на экран, в файлы /var/log/syslog/{alert,messages} и в файл /var/log/user/errors</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>195457</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Yereschenko">ave4600</who>
    <bug_when>2021-01-15 22:18:45 +0300</bug_when>
    <thetext>Подтверждаю наличие ошибки.
Наткнулся при тестировании стартеркита alt-p9-server-sysv-20201212-x86_64

В /var/log/messages вываливается строчка:
&quot;rsyslogd: action &apos;*&apos; treated as &apos;:omusrmsg:*&apos; - please use &apos;:omusrmsg:*&apos; syntax instead, &apos;*&apos; will not be supported in the future [v8.1901.0 try https://www.rsyslog.com/e/218
4 ]&quot;

В /etc/syslog.conf это строчка:
# Everybody gets emergency messages
*.emerg                             *

После приведения к виду:
# Everybody gets emergency messages
*.emerg                   :omusrmsg:*

... ошибка исчезла
Тест проходит (в файл alert сообщение попадает):
logger -p user.emerg &quot;emergency test&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206914</commentid>
    <comment_count>5</comment_count>
    <who name="Антон Мидюков">antohami</who>
    <bug_when>2022-01-20 19:17:55 +0300</bug_when>
    <thetext>В текущих регулярках с sysv проблема не наблюдается.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208370</commentid>
    <comment_count>6</comment_count>
    <who name="Anton Shevtsov">shevtsov.anton</who>
    <bug_when>2022-03-10 12:11:27 +0300</bug_when>
    <thetext>В 10ой платформе все тоже самое, без приведения к виду:

# Everybody gets emergency messages
*.emerg                   :omusrmsg:*

не работает ничего</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208372</commentid>
    <comment_count>7</comment_count>
    <who name="Anton Shevtsov">shevtsov.anton</who>
    <bug_when>2022-03-10 14:24:52 +0300</bug_when>
    <thetext>в дополнение.
systemctl start rsyslog тоже не запускает сервис , а вот systemctl restart rsyslog - запускает</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208572</commentid>
    <comment_count>8</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2022-03-17 15:24:41 +0300</bug_when>
    <thetext>ping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208760</commentid>
    <comment_count>9</comment_count>
    <who name="Alexey Shabalin">shaba</who>
    <bug_when>2022-03-22 18:49:30 +0300</bug_when>
    <thetext>Исправлено в 8.2108.0-alt2 (Fri Sep 03 2021).
В p10 не проходит, там нашли регрессию &quot;Не работает отправка логов с клиента на сервер&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>