Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support (Russian)
  3. Syslog

Syslog

Scheduled Pinned Locked Moved Support (Russian)
42 Posts 3 Posters 350.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    A
    Alex
    wrote on last edited by
    #5

    Такой таймстамп возвращает оборудование под названием Cisco 🙂 Не думаю я что они работают не по RFC. Во всяком случае продукт под название SolarWinds видит такой таймстамп нормально и обрабатывает его.

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #6

      Citata iz RFC3164 (The BSD syslog Protocol), napisana chelovekom iz Cisco:

      The HEADER contains two fields called the TIMESTAMP and the HOSTNAME.
        The TIMESTAMP will immediately follow the trailing ">" from the PRI
        part and single space characters MUST follow each of the TIMESTAMP
        and HOSTNAME fields.  HOSTNAME will contain the hostname, as it knows
        itself.  If it does not have a hostname, then it will contain its own
        IP address.  If a device has multiple IP addresses, it has usually
        been seen to use the IP address from which the message is
        transmitted.  An alternative to this behavior has also been seen.  In
        that case, a device may be configured to send all messages using a
        single source IP address regardless of the interface from which the
        message is sent.  This will provide a single consistent HOSTNAME for
        all messages sent from a device.

        The TIMESTAMP field is the local time and is in the format of "Mmm dd
        hh:mm:ss" (without the quote marks) where:

              Mmm is the English language abbreviation for the month of the
              year with the first character in uppercase and the other two
              characters in lowercase.  The following are the only acceptable
              values:

              Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec

              dd is the day of the month.  If the day of the month is less
              than 10, then it MUST be represented as a space and then the
              number.  For example, the 7th day of August would be
              represented as "Aug  7", with two spaces between the "g" and
              the "7".

              hh:mm:ss is the local time.  The hour (hh) is represented in a
              24-hour format.  Valid entries are between 00 and 23,
              inclusive.  The minute (mm) and second (ss) entries are between
              00 and 59 inclusive.

        A single space character MUST follow the TIMESTAMP field.

      Ni slova pro vozmoznost' takogo formata.

      1 Reply Last reply
      0
      • A
        A
        Alex
        wrote on last edited by
        #7

        Понимаю но факт остается фактом :(((

        Вот не с железки, а с SolarWinds лог:

        MsgID   Active  IP      Hostname        DateTime        Facility        Priority        Message
        1302754 Да      MY_IP   myhostname    2007-10-10 15:19:01     184     6       15512: Oct 10 11:19:20.614: %SEC-6-IPACCESSLOGP: list 170
        denied tcp IP_A(41928) -> MY_IP(22), 1 packet
        

        Т.е. судя по тому что я вижу, они не парсят пакет.. А превращают его в обычный string и бросают в лог.

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #8

          Aga, a mi parsim (v osnovnom dlja togo chtobi svjazat' s ob'ektom node), bol'she intellekta - bol'she problem 🙂 Zaregistriroval v bugtracker'e kak issue #199, budu ispravljat'.

          1 Reply Last reply
          0
          • A
            A
            Alex
            wrote on last edited by
            #9

            Это все понятно. Значится ждем-с 🙂

            1 Reply Last reply
            0
            • A
              A
              Alex
              wrote on last edited by
              #10

              Есть какие-то продвижения по данному вопросу?

              1 Reply Last reply
              0
              • V
                V
                Victor Kirhenshtein
                wrote on last edited by
                #11

                Пока нет, всю неделю не до того было... На выходных займусь.

                1 Reply Last reply
                0
                • V
                  V
                  Victor Kirhenshtein
                  wrote on last edited by
                  #12

                  Vrode ispravil. Esli zamenit' prilozennij fail v src/server/core i peresobrat', to dolzno rabotat'.


                  syslogd.cpp

                  1 Reply Last reply
                  0
                  • A
                    A
                    Alex
                    wrote on last edited by
                    #13

                    Угу.. Можно включать в следующий релиз. Тему можно закрывать.

                    P.S.>Осталось разобраться как теперь работать с этим :))) Но это уже другая тема 🙂

                    1 Reply Last reply
                    0
                    • A
                      A
                      Alex
                      wrote on last edited by
                      #14

                      Поторопился с закрытием 🙂

                      Вопросы:
                      -Можно ли как-то настроить events-ы по приходу Notice, Information, Error сообщений от Syslog-а?
                      -Просматривать за прошлый месяц,день,час. Имеется в виду фильтр примерно такой же как на графиках.

                      1 Reply Last reply
                      0
                      • V
                        V
                        Victor Kirhenshtein
                        wrote on last edited by
                        #15

                        Пока нельзя. В планах уже давно, но никак руки не доходят...

                        1 Reply Last reply
                        0
                        • A
                          A
                          Alex
                          wrote on last edited by
                          #16

                          Дополнение:
                          Возможно ли внести понятие размер шрифта, а также возможно редактировать столбцы для вывода? К примеру выводить только 4 столбца: Time, Severity, Hostname, Message. К примеру Facility, Tag мне не нужны.

                          1 Reply Last reply
                          0
                          • A
                            A
                            Alex
                            wrote on last edited by
                            #17

                            Будут какие-то ответы?

                            1 Reply Last reply
                            0
                            • V
                              V
                              Victor Kirhenshtein
                              wrote on last edited by
                              #18

                              Я принял к сведению 🙂 Конечно, все возможно, и со временем обязательно будет.

                              1 Reply Last reply
                              0
                              • A
                                A
                                Alex
                                wrote on last edited by
                                #19

                                Сорри, что поднимаю тему вновь, но честно говоря не совсем понятно как в 0.2.23 отлавливать события пришедшие по Syslog. Можно какой-нить мини-мануальчик хотя бы?
                                Спасибо заранее.

                                P.S.> Предыдущие запросы мои по этому вопросу остались.

                                1 Reply Last reply
                                0
                                • V
                                  V
                                  Victor Kirhenshtein
                                  wrote on last edited by
                                  #20

                                  @axel said in Syslog:

                                  Сорри, что поднимаю тему вновь, но честно говоря не совсем понятно как в 0.2.23 отлавливать события пришедшие по Syslog. Можно какой-нить мини-мануальчик хотя бы?

                                  Надо через Control Panel -> Syslog Parser написать XML, где описывается, какие записи в syslog превращать в события. Формат этого XML'a описан здесь: https://www.netxms.org/forum/index.php/topic,483.0.html. Можно указывать или код, или имя события. Потом делается обработка событий как обычно через event processing policy.

                                  1 Reply Last reply
                                  0
                                  • A
                                    A
                                    Alex
                                    wrote on last edited by
                                    #21

                                    Что-то почта не отправляется 😞


                                    netxms1.jpg

                                    netxms2.jpg

                                    netxms3.jpg

                                    1 Reply Last reply
                                    0
                                    • A
                                      A
                                      Alex
                                      wrote on last edited by
                                      #22

                                      Пробовал прописать и в другом регистре поисковую строку, не помогает.

                                      1 Reply Last reply
                                      0
                                      • A
                                        A
                                        Alex
                                        wrote on last edited by
                                        #23

                                        UP!  ??? ::)

                                        1 Reply Last reply
                                        0
                                        • V
                                          V
                                          Victor Kirhenshtein
                                          wrote on last edited by
                                          #24

                                          Как-то я пропустил этот пост, прошу прощения 🙂 А релиз 0.2.23 так-же себя ведет? Еслт да, пришли пожалуйста оригинальную строку из syslog'a, которая должна создавать событие.

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups