API 2017-04-03T18:11:51+00:00

Any Data, Any Volume in Real-time All the Time

Flat-Ultra-Low-Latency(“FULL”) time-series data analytics platform processing over 150,000 events per second/per core or over 3 billion events per day/per core. Our competitors would need +200 cores to match such a performance.

How it Works

Key Features

Additional Services

Technologies

Models

Open API

Open API

Integrate your own apps

Integration of your applications and the Logtrust service is very simple. You can integrate your applications operative information: such as the way your users are accessing your application, debugging traces, errors and more…

All the information you integrate will form part of your BigData which you will be able to query like any other standard information, fully parsed as in a database.

From a few days to years, everything can be accessed in real-time and with a speed never before seen.

From our web interface, you will be able to run queries, set alerts and business dashboards. We provide several integration mechanisms so you can choose the ones that best suit your needs.

We offer the necessary code in C, C++, Java, .NET, Python, Rails, NodeJS, etc. or can integrate any data or event you generate.

Examples

#include 
#include 
#include "lt_main.h"
#define DEBUG 1

int main(void) {
    lt_ctx *lt_id;
    char relay[] = "eu.public.relay.logtrust.net";
    int timeout = 2;
    lt_id = lt_openlog(relay, "443", "ssl",
                        "test.keep.free", "local3", timeout, DEBUG,
                        "certs/client.crt", "certs/client.key",
                        "certs/ca.crt");
    if (lt_id == NULL) {
        fprintf(stderr, "lt_openlog error\n");
        exit(-1);
    }
    lt_syslog(lt_id, "err", "This is a test from C");
    lt_syslog(lt_id, "info", "This is a test from C");
    lt_closelog(lt_id);

    return 0;
}
using System;
using System.Security.Cryptography.X509Certificates;
using LT.Common.Formatter;
using LT.Common.Net;
using LT.Common.Utils;

namespace SendEventsSample
{
    class Program
    {
        static void Main(string[] args)
        {
            string ipAddress = "eu.public.relay.logtrust.net"; 
            int port = 443;
            string tag = "test.keep.free";
            int facility = 10;
            string message = "Hello World!\r\n";

            try
            {
                MyTcpServer client = new MyTcpServer(ipAddress, port);

                if (client != null)
                {                        
                    client.Certificate = CertificateHelper.GetCertificateFromStore(
                    		"CN=testing, O=LogTrust, L=Madrid, S=Madrid, C=SP", 
                        	StoreName.My, 
                        	StoreLocation.LocalMachine);
                        
                    client.Connect(true);

                    if (!String.IsNullOrEmpty(message))
                    {
                        byte[] formatedStringBuffer = formatedStringBuffer =
                        		LogTrustLogMessageFormater.PrepareSyslogMessage(facility, message, DateTime.Now, tag);
                        
                        client.SendMessage(formatedStringBuffer);
                    }
                    client.Close();
                }
            }
            catch (Exception ex)
            {
                // ....
            }
        }
    }
}
using System;
open System
open LT.Common.Net 
open LT.Common.Utils  
open System.Security.Cryptography.X509Certificates;
open LT.Common.Formatter;

[]
let main argv = 

    let ipAddress = "eu.public.relay.logtrust.net"            
    let port = 443
    let tag = "test.keep.free"
    let facility = 10
    let message = "Hello World!\r\n"    

    let client = new MyTcpServer(ipAddress, port)

    client.Certificate
using System;
/* Using Scoja syslog client library.
* Scoja is a third-party open source logging framework. 
* See http://sourceforge.net/projects/scoja/ */

import org.scoja.client.Syslogger;
import org.scoja.client.ReusingTCPSyslogger;
 
public class Test {
  static final String HOST = "relay";
  static final int PORT = 514;
 
  public static void main(String args[]) throws Exception {
    Syslogger logger = new ReusingTCPSyslogger(HOST, PORT);
    logger.log("Log Test");
    logger.close();
  }
}
using System;
require("lt_lua_syslog")

cert = "certs/client.crt"
key = "certs/client.key"
chain = "certs/ca_dev.crt"
relay = "eu.public.relay.logtrust.net"

relays = {
  {relay, "1234"},
  {relay, "1234", "udp", "test.keep.free.udp", "local1"},
  {relay, "1234", "tcp", "test.keep.free.tcp", "local2", 1, 1},
  {relay, "443",  "ssl", "test.keep.free.ssl", "local3", 1, 1, cert, key, chain}
}

for i,v in ipairs(relays) do
   local lt_ctx = lt_openlog(unpack(v))
    if lt_ctx == nil then print ("ERROR: Connection estabishment failed") end
    lt_syslog(lt_ctx, "info", "just a simple test message")
    lt_closelog(lt_ctx)
end
using System;
import sys
import socket
import logging
from ltLogger import *

secureRelay = ('eu.public.relay.logtrust.net', 443)

loggerSSL = logging.getLogger("ltSSL")
loggerSSL.setLevel(logging.DEBUG)

syslogSSL = LtLogger(
	address=secureRelay, key="client.key",
    cert="client.crt", chain="ca.crt",
    tag="my.app.python.ssl")

loggerSSL.addHandler(syslogSSL)

for i in range(100):
  
    loggerSSL.info("test example")

Integration with third-party software

From the first minute all the logs and machine data of most standard software applications will be available for you, completely parsed.

Supported technologies

Logtrust has set the commitment to integrate and fully parse any log coming from established standard technologies. In just a few hours upon receipt of the sample log, you will have access to the query with all the defined fields and data types.

Alerting to third parties

You can also integrate our system with third-party software via connectors: Jira, ServiceDesk, Pushover, PagerDuty and others.

Custom notifications

Our notification service via webService allows you to integrate the alert system with third-party services enabling Logtrust alerts to trigger a call to a customer or to your support service, generate a ticket in your incidence software or just send you an email.

Open APIs

You can use the Logtrust platform as your data backend, so you can take advantage of our BigData analytics within your applications.

Using standard protocols and interfaces via REST, you will be able to consult all the data you send to our system, in your chosen time period and from the simplest to the most complex queries.

You can even define a query in our web interface, adjust it to your needs, assigning an ID and run the query from your applications; you’ll be able to change the query from our web application whenever you need, without having to modify your applications.

Javascript API search example

var milliseconds = new Date().getTime(),

dateFrom = milliseconds – 3600000,
dateTo = 0,
timestamp = milliseconds,
apiKey = ‘API KEY’,
idSearch = ‘ID SEARCH’,
apiSecret = ‘API SECRET’,
concat = apiKey + dateFrom + dateTo + idSearch + timestamp,
sign = CryptoJS.HmacSHA256(concat, apiSecret).toString();

$.ajax({
type: “POST”,
url: ‘https://api.logtrust.com/lt-api/storedSearchAction.json’,
data: {

apiKey:  apiKey,
dateFrom:  dateFrom,
dateTo:  dateTo,
idSearch:  idSearch,
timestamp: timestamp,
sign:  sign

},
success: function(data){
console.log(data);
}
});

100% flexible plans. Pay only for what you need neither more nor less.

Try it Free!