mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
parent
46bfec52fe
commit
39a0df1723
1 changed files with 2 additions and 4 deletions
|
@ -9,13 +9,11 @@ public class PathCache {
|
||||||
|
|
||||||
private FieldReference timestamp;
|
private FieldReference timestamp;
|
||||||
|
|
||||||
// TODO: dry with Event
|
private static final String BRACKETS_TIMESTAMP = "[" + Event.TIMESTAMP + "]";
|
||||||
public static final String TIMESTAMP = "@timestamp";
|
|
||||||
public static final String BRACKETS_TIMESTAMP = "[" + TIMESTAMP + "]";
|
|
||||||
|
|
||||||
protected PathCache() {
|
protected PathCache() {
|
||||||
// inject @timestamp
|
// inject @timestamp
|
||||||
this.timestamp = cache(TIMESTAMP);
|
this.timestamp = cache(Event.TIMESTAMP);
|
||||||
cache(BRACKETS_TIMESTAMP, this.timestamp);
|
cache(BRACKETS_TIMESTAMP, this.timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue