Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2473

Flume exec tail -f date on apache log - unix date formatting

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.5.0.1
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None
    • Environment:

      CentOS 6.5

      Description

      I'm trying to setup a flume source using the exec type and using tail -F on a log file that will be date stamped. The docs indicate typical unix commands would work, but date formatting for a file that's name changes each day doesn't seem to work.

      agent.sources.apache.command = tail -F /usr/local/apache/localhost/logs/access_log.`date +%Y%m%d`

      If I use "tail -F /usr/local/apache/localhost/logs/access_log.`date +%Y%m%d`" at the shell it works perfectly, but used inside the flume.conf for this source, I get nothing.

      Is there a way to use the unix date formatting in the source definition in flume.conf?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gtaber Guyle Taber
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: