# Read .asl Log-Files on Mac OS X from "/var/log/servermetricsd/"

**URL:** https://discuss.elastic.co/t/read-asl-log-files-on-mac-os-x-from-var-log-servermetricsd/53619
**Category:** Logstash
**Created:** [June 22, 2016, 7:28am UTC](https://discuss.elastic.co/t/read-asl-log-files-on-mac-os-x-from-var-log-servermetricsd/53619 "2016-06-22T07:28:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![beelastic](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@beelastic](https://discuss.elastic.co/u/beelastic)
#### Post date: [June 22, 2016, 7:28am UTC](https://discuss.elastic.co/t/read-asl-log-files-on-mac-os-x-from-var-log-servermetricsd/53619/1 "2016-06-22T07:28:39Z")

</div>

Hello everyone!  
I want to use my ELK stack to monitor couple of Mac Servers.  
The log files are located in "/var/log/servermetricsd/" and have the file extension "\*.asl".  
I use Logstash with the following configuration:

> input {  
> file {  
> path =\>["/var/log/_.log","/var/log/servermetrics/_.asl"]  
> codec =\> plain {  
> charset =\>"BINARY"  
> }  
> }  
> }  
> output {  
> elasticsearch {  
> hosts =\> "10.10.100.90:9200"  
> index =\>"macserver-%{+YY.MM.dd}"  
> }  
> }

The log files from "/var/log/\*.log" are processed well, but i dont get the asl files.

.asl file Information: application/octet-stream; charset=binary

Any ideas?

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [June 22, 2016, 1:18pm UTC](https://discuss.elastic.co/t/read-asl-log-files-on-mac-os-x-from-var-log-servermetricsd/53619/2 "2016-06-22T13:18:12Z")

</div>

Binary isn't a character set. Logstash ingests _text_ data by default, and can only ingest binary data by way of a special plugin, designed to convert said binary format back into _text._

---

<div class="post-metadata">

### Author: ![beelastic](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@beelastic](https://discuss.elastic.co/u/beelastic)
#### Post date: [June 22, 2016, 1:30pm UTC](https://discuss.elastic.co/t/read-asl-log-files-on-mac-os-x-from-var-log-servermetricsd/53619/3 "2016-06-22T13:30:05Z")

</div>

Thank you very much for the reply! (:

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 4:51am UTC](https://discuss.elastic.co/t/read-asl-log-files-on-mac-os-x-from-var-log-servermetricsd/53619/4 "2017-07-06T04:51:11Z")

</div>


