sous-chefs / rsyslog

Development repository for the rsyslog cookbook
https://supermarket.chef.io/cookbooks/rsyslog
Apache License 2.0
65 stars 199 forks source link

Update to use library for finding remote servers #59

Closed spion06 closed 9 years ago

spion06 commented 10 years ago

Please let me know if there is anything else you would like to see done with this. There is already a test to verify that the server is added to the config [1] so I did not write another one.

[1] https://github.com/opscode-cookbooks/rsyslog/blob/master/test/integration/client/bats/verify_client.bats

spion06 commented 10 years ago

Are there any outstanding issues with this pull that need to be resolved?

tas50 commented 9 years ago

Sorry for the late response. Is there a particular reason for moving this code into a library?

spion06 commented 9 years ago

I have a use-case where I need to forward auditd events through rsyslog and not have them go to a file since auditd is already sending these logs to a file. currently i'm replicating the search code in my cookbook. Here's what my config looks like in rsyslog.d

$ActionQueueType LinkedList # use asynchronous processing
$ActionQueueFileName srvrfwd # set file name, also enables disk mode
$ActionResumeRetryCount -1 # infinite retries on insert failure
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down
$SystemLogRateLimitInterval 0

if $programname == 'audispd' then @rsyslog_server
& ~
tas50 commented 9 years ago

With the removal of chef-solo support this is all going to get reworked in the near future.

spion06 commented 9 years ago

thanks for the update. Should I assume I need to continue to implement my own search function for my use-case or will that be resolved with the rework?