/** * Submits an event to this index through an HTTP POST request. * * @param args Optional arguments for this request. Valid parameters are: * "host", "host_regex", "source", and "sourcetype". * @param data The event data to post. */ public void submit(Args args, String data) { Receiver receiver = service.getReceiver(); receiver.submit(getName(), args, data); }
/** * Submits an event to this index through an HTTP POST request. * * @param data The event data to post. */ public void submit(String data) { Receiver receiver = service.getReceiver(); receiver.submit(getName(), data); }
/** * Creates a writable socket to this index. * * @return The writable socket. * @throws IOException */ public Socket attach() throws IOException { Receiver receiver = service.getReceiver(); return receiver.attach(getName()); }
/** * Creates a writable socket to this index. * * @param args Optional arguments for this stream. Valid parameters are: * "host", "host_regex", "source", and "sourcetype". * @return The socket. * @throws IOException */ public Socket attach(Args args) throws IOException { Receiver receiver = service.getReceiver(); return receiver.attach(getName(), args); }