.NET
Karl Seguin has written a nice little .NET driver which is housed on Github: https://github.com/karlseguin/loggly-csharp. The driver allows you to use HTTP/HTTPS inputs to send events into Loggly. After you send in events, you can search for them.
Start by creating a HTTP input in your account, then hop over to Karl's project to install and configure the driver.
Sending
Create a new Logger with your input key:
var logger = new Logger(“my-long-key-that-i-got-when-setting-up-my-http-input”);
Note: You can use either a synchronous or asynchronous logging method when sending.
You can also send logs to Loggly using plain Powershell:
$url="your http input url" $webClient = New-Object System.Net.WebClient $webClient.UploadString($url,"Hello from Powershell !")
Searching
Setup the username/password you want to connect with:
LogglyConfiguration.Configure(c => c.AuthenticateWith(“username”, “password”));
Next, create a searcher with your domain:
var searcher = new Searcher(“mydomain”);
You'll use the various search methods to conduct your searches.
Note: Searching is a synchronous process.