parameter 'statefile' required but not specified

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

Google Ads


parameter 'statefile' required but not specified

Postby sivaa » Mon Aug 07, 2017 10:00 pm

My Configuration:
Code: Select all
input(type="imfile" Tag="nginx.access" Severity="info" Facility="user" ruleset="nginx-access" File="/var/log/nginx/access.log" )


Error:
Code: Select all
rsyslogd: error during parsing file /etc/rsyslog.d/app-rsyslog.conf, on or before line 3: parameter 'statefile' required but not specified - fix config [try http://www.rsyslog.com/e/2207 ]


The documentation mentions that the statefile parameter is deprecated and the above error says that it is mandatory. Version 8.4.2. Can you help to troubleshoot it further?
sivaa
New
 
Posts: 2
Joined: Mon Aug 07, 2017 9:56 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: parameter 'statefile' required but not specified

Postby rgerhards » Mon Aug 07, 2017 10:09 pm

Your version is way too old.
rgerhards
Site Admin
 
Posts: 3798
Joined: Thu Feb 13, 2003 11:57 am

Re: parameter 'statefile' required but not specified

Postby dlang » Mon Aug 07, 2017 10:11 pm

What version of the documentation are you looking at? it's very possible that it's moved from mandatory to depreciated in the time since 8.4 (we are nearing 8.30 currently)

your distro should have the docs for that version available (probably as an optional package), but you should also look at moving to something closer to current.

As a community, we only officially support the current version (although we are not strict about it), but for something like this, it's not worth much to spend our time investigating such an old version.
dlang
Frequent Poster
 
Posts: 1001
Joined: Mon Sep 15, 2008 7:44 am

Re: parameter 'statefile' required but not specified

Postby sivaa » Tue Aug 08, 2017 9:34 am

Fixed it after upgrading the latest version. Thanks for your help

Background: I was using python:3.6 docker image and it tries to install the older version of rsyslog and switched to ubuntu:16.04 and it installed the lastest version.
sivaa
New
 
Posts: 2
Joined: Mon Aug 07, 2017 9:56 pm

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron