Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-20378

LogFeeder: Add de-duplication support

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.0
    • trunk, 2.5.1
    • ambari-logsearch
    • None

    Description

      Add de-duplication support to logfeeder.
      For handling duplications, it will be an LRU cache for every input.
      It can be set up at logfeeder.properties (global setting). For example (the values below are the defaults):

      logfeeder.cache.enabled=false
      logfeeder.cache.size=100
      logfeeder.cache.key.field=log_message
      logfeeder.cache.dedup.interval=1000
      logfeeder.cache.last.dedup.enabled=false
      

      can be overriden in input config block (per monitored file)

      {
        "input": [
          {
            ...
            "cache_enabled" : "true",
            "cache_size" : "100",
            "cache_dedup_interval" : "1000",
            "cache_last_dedup_enabled" : "false",
            "cache_key_field" : "log_message"
          }
        ] ...
      

      cache_dedup_interval : if the interval (timestamp - date difference) is not reached between 2 log messages (same content), then the new log will be dropped.
      cache_last_dedup_enabled: if its enabled and the new log message is the same as the last one, the new log will be dropped. (dedup interval wont have impact on that feature)
      cache_key_field : field of the log message which will be compared and stored in the cache (as keys)

      Attachments

        1. AMBARI-20378.patch
          37 kB
          Oliver Szabo

        Issue Links

          Activity

            People

              oleewere Oliver Szabo
              oleewere Oliver Szabo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: