# sumologic-syslog()

The `sumologic-http()` and `sumologic-syslog()` destinations send log messages to [Sumo Logic](<https://www.sumologic.com/>), a cloud-based log management and security analytics service.

Using the `sumologic-syslog()` destination, you can send data (both in JSON and in non-JSON format) to the Sumo Logic service.

For more information about the `sumologic-http()` destination, see [sumologic-http()](../../../docs/axosyslog-core/chapter-destinations/destination-sumologic-intro/destination-sumologic-http/index.md).

## Sending data using the sumologic-syslog() destination

### Example: Sending data using the sumologic-syslog() destination

The following example illustrates how you can use the `sumologic-syslog()` destination to send data to your Sumo Logic account.
```
 
       log {
          source { system(); };
        
          destination{
            sumologic-syslog(token("USER-TOKEN-AS-PROVIDED-BY-sumologic")
              deployment("ENDPOINT")
              tls(peer-verify(required-trusted) ca-dir('/etc/syslog-ng/ca.d'))
            );
        };
        };
    
```

## Sending JSON data using the sumologic-syslog destination

### Example: Sending data using the sumologic-syslog() destination

The following example illustrates how you can use the `sumologic-syslog()` destination to send JSON data to your Sumo Logic account.
```
 
       log {
          source{ system(); };
        
          destination{
            sumologic-syslog(token("USER-TOKEN-AS-PROVIDED-BY-sumologic")
              deployment("ENDPOINT")
              tls(peer-verify(required-trusted) ca-dir('/etc/syslog-ng/ca.d'))
              template("$(format-json --scope all-nv-pairs)")
            );
          };
        };
    
```

Last modified July 2, 2023: [Change highlight mode of code examples (2f8a9593)](<https://github.com/axoflow/axosyslog-core-docs/commit/2f8a95937c6498193e7168ce8b0dc831e9f0f8ad>)