Splunk: Disable real-time search (GH-#39)
This commit is contained in:
@@ -193,7 +193,9 @@ public class SplunkDataReader implements DataReader, InitializingBean {
|
||||
return exportSearch();
|
||||
}
|
||||
case REALTIME: {
|
||||
return realtimeSearch();
|
||||
throw new UnsupportedOperationException("The 'real-time' search isn't supported " +
|
||||
"because of the infinite Splunk Job nature.");
|
||||
// return realtimeSearch();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -181,7 +181,7 @@ Indicates the connection timeout in ms.
|
||||
<xsd:attribute name="mode" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
Search mode: normal, blocking, realtime, export, saved
|
||||
Search mode: normal, blocking, export, saved
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
@@ -250,7 +250,7 @@ Indicates the connection timeout in ms.
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
|
||||
|
||||
<xsd:complexType name="indexWriterType">
|
||||
<xsd:attribute name="index" type="xsd:string" use="optional">
|
||||
<xsd:annotation>
|
||||
@@ -260,7 +260,7 @@ Indicates the connection timeout in ms.
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
</xsd:complexType>
|
||||
|
||||
|
||||
<xsd:complexType name="tcpWriterType">
|
||||
<xsd:attribute name="port" type="xsd:string" use="required">
|
||||
<xsd:annotation>
|
||||
@@ -346,7 +346,7 @@ Indicates the connection timeout in ms.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
|
||||
|
||||
<xsd:attribute name="host" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
@@ -354,7 +354,7 @@ Indicates the connection timeout in ms.
|
||||
</xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
|
||||
|
||||
<xsd:attribute name="host-regex" type="xsd:string">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation>
|
||||
|
||||
@@ -28,6 +28,7 @@ import com.splunk.JobCollection;
|
||||
import com.splunk.Service;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
@@ -72,6 +73,7 @@ public class SplunkDataReaderTests {
|
||||
}
|
||||
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
public void testRealtimeSearch() throws Exception {
|
||||
reader.setMode(SearchMode.REALTIME);
|
||||
|
||||
Reference in New Issue
Block a user