Commit Graph

13 Commits

Author SHA1 Message Date
Artem Bilan
d40d510e4c Splunk: Disable real-time search (GH-#39) 2014-07-24 17:26:34 +03:00
Artem Bilan
c639066daf Splunk: Populate count=0 to the reader Job
PR: https://github.com/spring-projects/spring-integration-extensions/pull/82
2014-06-30 10:08:07 +03:00
Olivier Lamy
49538abbe6 INTEXT-105: Fix "index" property according to the schema
JIRA: https://jira.spring.io/browse/INTEXT-105

Previously the `SplunkIndexWriter` has property `indexName`,
however the XSD for `<int-splunk:index-writer/>` provides the `index` attribute

Rename the property and add parser test
2014-06-12 14:09:28 +03:00
Artem Bilan
bb85518449 INTEXT-94: Fix Auth bug for Splunk 6.x
JIRA: https://jira.spring.io/browse/INTEXT-94

* Upgrade to Splunk Client 1.3
2014-06-06 17:35:29 +03:00
Olivier Lamy
198205058c Splunk: Servers failover
upgrade versions

Conflicts:
	spring-integration-splunk/gradle.properties

upgrade gradle version

revert spring integration upgrade version

Add a feature to be able to declare more than one splunk server.
It's a simple failover mechanism with any pooling.
Before give back the Service instance, the framework just try a getInfo call.
To preserve backward compat this check it's not activated per default but only
if the splunk server instance is marked with testOnBorrow.

Sample:
````xml
  <int-splunk:server id="splunkServer" host="${splunk.server.host}" port="${splunk.server.port}"
                     username="${splunk.server.username}" password="${splunk.server.password}"
                     owner="${splunk.server.owner}" scheme="${splunk.server.scheme}" testOnBorrow="true" />

  <int-splunk:server id="splunkServerBackup" host="localhost" port="9999"
                     username="${splunk.server.username}" password="${splunk.server.password}"
                     owner="${splunk.server.owner}" scheme="${splunk.server.scheme}" testOnBorrow="true" />

  <util:list id="splunkServersList">
    <ref bean="splunkServer" />
    <ref bean="splunkServerBackup" />
  </util:list>

  <bean id="splunkServiceFactory" class="org.springframework.integration.splunk.support.SplunkServiceFactory">
    <constructor-arg ref="splunkServersList"/>
  </bean>

  <int-splunk:inbound-channel-adapter id="splunk-notify-order-status-change-channel"
                                      auto-startup="true"
                                      search=""
                                      splunk-server-ref="splunkServer;splunkServerBackup"
                                      channel="notify-order-status-change-input"
                                      mode="BLOCKING"
                                      init-earliest-time="${splunk.order-status-change.init-earliest-time}"
                                      >
    <int:poller fixed-rate="${splunk.order-status-change.pooling.rate.time}" time-unit="SECONDS"/>
  </int-splunk:inbound-channel-adapter>
````

some changes due to pr comments

Conflicts:
	spring-integration-splunk/gradle.properties

formatting: tabs instead of spaces.....

fix documentation with failover mechanism

formatting

formatting

upgrade versions

some changes due to pr comments

fix javadoc issues

1.1 xsd file

Polishing and upgrading
2014-06-06 13:49:32 +03:00
Glenn Renfro
3ba75060eb XD-1170 updted import for MessageHandlingException 2014-06-02 17:24:03 +03:00
Glenn Renfro
aafda12a5f Uses Spring 4.0 dependencies
Updated the buid version 1.1.0
2014-06-02 17:24:03 +03:00
Damien Dallimore
cbcc0d9295 created "index" field 2013-04-04 13:48:41 +07:00
David Turanski
885e2ebc11 INTEXT-43 replaced ConnectionFactory with ServiceFactory
* remove trailing spaces from SplunkEventTests
* remove trailing spaces from README.md
2013-02-08 11:51:05 -05:00
David Turanski
9eaed7e08a INTEXT-42 refactored SplunkEvent 2013-02-08 11:51:05 -05:00
David Turanski
c9d14135cc Add writer types to schema for Outbound Adapter and upgraded to Splunk 1.0.0
Update README
2013-02-04 14:14:46 -05:00
Jarred Li
987a35efae INTEXT-23 - Incorrect enum comparison 2012-10-07 19:57:32 -04:00
Jarred Li
deb09cdf9c INTEXT-21 Add Splunk adapter
For reference see: https://jira.springsource.org/browse/INTEXT-21
2012-09-29 15:04:19 -04:00