|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.splunk.Receiver
public class Receiver
The Receiver
class represents a named index and unnamed index
receivers.
Method Summary | |
---|---|
java.net.Socket |
attach()
Creates a writable socket to this index. |
java.net.Socket |
attach(Args args)
Creates a writable socket to this index. |
java.net.Socket |
attach(java.lang.String indexName)
Creates a writable socket to this index. |
java.net.Socket |
attach(java.lang.String indexName,
Args args)
Creates a writable socket to this index. |
void |
log(Args args,
java.lang.String data)
Submits an event to this index through HTTP POST. |
void |
log(java.lang.String data)
Submits an event to this index through HTTP POST. |
void |
log(java.lang.String indexName,
Args args,
java.lang.String data)
Logs an event to this index through HTTP POST. |
void |
log(java.lang.String indexName,
java.lang.String data)
Submits an event to this index through HTTP POST. |
void |
submit(Args args,
java.lang.String data)
Submits an event to this index through HTTP POST. |
void |
submit(java.lang.String data)
Submits an event to this index through HTTP POST. |
void |
submit(java.lang.String indexName,
Args args,
java.lang.String data)
Logs an event to this index through HTTP POST. |
void |
submit(java.lang.String indexName,
java.lang.String data)
Submits an event to this index through HTTP POST. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.net.Socket attach() throws java.io.IOException
java.io.IOException
public java.net.Socket attach(java.lang.String indexName) throws java.io.IOException
indexName
- The index to write to.
java.io.IOException
public java.net.Socket attach(Args args) throws java.io.IOException
args
- Optional arguments for this stream. Valid parameters are:
"host", "host_regex", "source", and "sourcetype".
java.io.IOException
public java.net.Socket attach(java.lang.String indexName, Args args) throws java.io.IOException
indexName
- The index to write to.args
- Optional arguments for this stream. Valid parameters are:
"host", "host_regex", "source", and "sourcetype".
java.io.IOException
public void submit(java.lang.String data)
data
- A string containing event data.public void submit(java.lang.String indexName, java.lang.String data)
indexName
- The index to write to.data
- A string containing event data.public void submit(Args args, java.lang.String data)
data
- A string containing event data.args
- Optional arguments for this stream. Valid parameters are:
"host", "host_regex", "source", and "sourcetype".public void submit(java.lang.String indexName, Args args, java.lang.String data)
indexName
- The index to write to.data
- A string containing event data.args
- Optional arguments for this stream. Valid parameters are:
"host", "host_regex", "source", and "sourcetype".public void log(java.lang.String data)
submit()
.
data
- A string containing event data.public void log(java.lang.String indexName, java.lang.String data)
submit()
.
indexName
- The index to write to.data
- A string containing event data.public void log(Args args, java.lang.String data)
submit()
.
args
- Optional arguments for this stream. Valid parameters are:
"host", "host_regex", "source", and "sourcetype".data
- A string containing event data.public void log(java.lang.String indexName, Args args, java.lang.String data)
submit()
.
indexName
- The index to write to.args
- Optional arguments for this stream. Valid parameters are:
"host", "host_regex", "source", and "sourcetype".data
- A string containing event data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |