Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Removing Logentries from Runkeeper servers
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bondi committed Jan 17, 2018
1 parent 9da4868 commit 6e99ff2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 73 deletions.
10 changes: 1 addition & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,4 @@ data/secrets*.yaml
data/*.sql
puppet-rk_tomcat.iml
rk_tomcat.iml
.idea/.name
.idea/compiler.xml
.idea/misc.xml
.idea/modules.xml
.idea/vcs.xml
.idea/workspace.xml
.idea/copyright/profiles_settings.xml
.idea/inspectionProfiles/Project_Default.xml
.idea/inspectionProfiles/profiles_settings.xml
.idea
5 changes: 0 additions & 5 deletions manifests/deploy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
$cloudant_host,
$cloudant_user,
$cloudant_password,
$logentries_tokens,
$logdna_tokens,
$newrelic_enabled,
$redis_pushnotif_host,
Expand Down Expand Up @@ -77,10 +76,6 @@
}
}

# Logentries
$logentries_analytics_token = $logentries_tokens['analytics']
$logentries_applogs_token = $logentries_tokens['applogs']

# LogDNA
$logdna_applogs_token = $logdna_tokens['applogs']

Expand Down
59 changes: 0 additions & 59 deletions templates/logbackInclude.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@
<property name="logdnaPattern" value="[%thread] %logger{0} -- %m%n%rEx{full,${ignoredStackTrace}}" />

<%- if @tier == "staging" -%>
<property name="logentriesPattern" value="%cn <%= @staging_instance %> ${logPattern}" />
<property name="logdnaEnv" value="<%= @staging_instance %>" />
<%- else -%>
<property name="logentriesPattern" value="%cn ${logPattern}" />
<property name="logdnaEnv" value="prod" />
<%- end -%>

Expand Down Expand Up @@ -100,51 +98,6 @@
</rollingPolicy>
</appender>

<appender name="ANALYTICS_LOGENTRIES" class="com.logentries.logback.LogentriesAppender">
<Debug>False</Debug>
<Token><%= @logentries_analytics_token %></Token>
<Ssl>False</Ssl>
<facility>USER</facility>
<layout>
<pattern><%= @log_identifier %> %cn: %msg%n</pattern>
</layout>
</appender>

<appender name="APPLOGS_LOGENTRIES" class="com.logentries.logback.LogentriesAppender">
<%- if (@tier == "production" && ! @artifacts.keys.include?("admin")) -%>
<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
<evaluator> <!-- defaults to type ch.qos.logback.classic.boolex.JaninoEventEvaluator -->
<expression>try { Class.forName("fitnesskeeper.core.logging.InternalUsersFilter"); return true; } catch (Exception ex) { return false; }</expression>
</evaluator>
<OnMatch>NEUTRAL</OnMatch>
<OnMismatch>DENY</OnMismatch>
</filter>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>NEUTRAL</onMismatch>
</filter>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>WARN</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>NEUTRAL</onMismatch>
</filter>
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>NEUTRAL</onMismatch>
</filter>
<filter class="fitnesskeeper.core.logging.InternalUsersFilter" />
<%- end -%>
<Debug>False</Debug>
<Token><%= @logentries_applogs_token %></Token>
<Ssl>False</Ssl>
<facility>USER</facility>
<layout>
<pattern>${logentriesPattern}</pattern>
</layout>
</appender>

<appender name="APPLOGS_LOGDNA-HTTP" class="net._95point2.utils.LogDNAAppender">
<%- if (@tier == "production" && ! @artifacts.keys.include?("admin")) -%>
<filter class="ch.qos.logback.core.filter.EvaluatorFilter">
Expand Down Expand Up @@ -205,7 +158,6 @@
<appender-ref ref="${appLogAppenderRef}" />

<%- if @tier != "loadtest" -%>
<appender-ref ref="APPLOGS_LOGENTRIES" />
<appender-ref ref="APPLOGS_LOGDNA" />
<appender-ref ref="ERRORS_ANALYTICS" />
<%- end -%>
Expand Down Expand Up @@ -236,22 +188,11 @@
<!-- Note that additivity is set to false here -->
<!-- this is important because it stops analytics logs from going to appenders in the root logger -->
<logger name="analytics" additivity="false" level="INFO">

<%- if @tier != "loadtest" -%>
<appender-ref ref="ANALYTICS_FILE" />
<%- end -%>

<%- if @tier == "staging" -%>
<appender-ref ref="ANALYTICS_LOGENTRIES"/>
<%- end -%>
</logger>

<%- if @tier == "production" -%>
<logger name="analytics-trace" additivity="false" level="TRACE">
<appender-ref ref="ANALYTICS_LOGENTRIES" />
</logger>
<%- end -%>

<logger name="analytics-engineering" additivity="false" level="INFO">
<appender-ref ref="ANALYTICS_ENGINEERING_FILE" />
</logger>
Expand Down

0 comments on commit 6e99ff2

Please sign in to comment.