public class Receiver extends Object
Receiver
class represents a named index and unnamed index
receivers.Modifier and Type | Method and Description |
---|---|
Socket |
attach()
Creates a writable socket to this index.
|
Socket |
attach(Args args)
Creates a writable socket to this index.
|
Socket |
attach(String indexName)
Creates a writable socket to this index.
|
Socket |
attach(String indexName,
Args args)
Creates a writable socket to this index.
|
void |
log(Args args,
String data)
Submits an event to this index through HTTP POST.
|
void |
log(String data)
Submits an event to this index through HTTP POST.
|
void |
log(String indexName,
Args args,
String data)
Logs an event to this index through HTTP POST.
|
void |
log(String indexName,
String data)
Submits an event to this index through HTTP POST.
|
void |
submit(Args args,
String data)
Submits an event to this index through HTTP POST.
|
void |
submit(String data)
Submits an event to this index through HTTP POST.
|
void |
submit(String indexName,
Args args,
String data)
Logs an event to this index through HTTP POST.
|
void |
submit(String indexName,
String data)
Submits an event to this index through HTTP POST.
|
public Socket attach() throws IOException
IOException
- The IOException instancepublic Socket attach(String indexName) throws IOException
indexName
- The index to write to.IOException
- The IOException instancepublic Socket attach(Args args) throws IOException
args
- Optional arguments for this stream. Valid parameters are:
"host", "host_regex", "source", and "sourcetype".IOException
- The IOException instancepublic Socket attach(String indexName, Args args) throws IOException
indexName
- The index to write to.args
- Optional arguments for this stream. Valid parameters are:
"host", "host_regex", "source", and "sourcetype".IOException
- The IOException instancepublic void submit(String data)
data
- A string containing event data.public void submit(String indexName, String data)
indexName
- The index to write to.data
- A string containing event data.public void submit(Args args, 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(String indexName, Args args, 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(String data)
submit()
.data
- A string containing event data.public void log(String indexName, String data)
submit()
.indexName
- The index to write to.data
- A string containing event data.public void log(Args args, 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(String indexName, Args args, 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.Copyright © 2022 Splunk, Inc.. All rights reserved.