Skip to content

Commit 406e125

Browse files
authored
fix mismatch extraction name and service name (#113)
1 parent 453448f commit 406e125

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2222
disable and enable triggers.
2323

2424
### Fixed
25+
- Fix the mismatch extractor name and extractor service name in log query.
2526
- Ignore the `update` field when posting to `/api/extractors`. [#89](https://github.com/clowder-framework/clowder/issues/89)
2627
- Search results were hardcoded to be in batches of 2.
2728

app/services/GraylogService.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class GraylogService @Inject() extends LogService {
2929
val username = playConfig.getString("clowder.log.username")
3030
val password = playConfig.getString("clowder.log.password")
3131
val prefix = playConfig.getString("clowder.log.extractorNamePrefix")
32-
val query: String = "application_name:" + prefix + extractorName + "*"
32+
val extractorRename: String = extractorName.replaceAll("[.]", "_")
33+
val query: String = "application_name:" + prefix + extractorRename + "*"
3334
val queryEncode: String = URLEncoder.encode(query, "UTF-8")
3435
val queryUrl: String = serviceEndpoint + "/api/search/universal/relative?query=" + queryEncode
3536
Logger.debug(s"queryUrl - $queryUrl")

0 commit comments

Comments
 (0)