# SLES 12.5 Core file location for application

**URL:** <https://forums.suse.com/t/sles-12-5-core-file-location-for-application/35566>\
**Category:** SLES Configure-Administer\
**Created:** [April 21, 2021, 4:39pm UTC](https://forums.suse.com/t/sles-12-5-core-file-location-for-application/35566 "2021-04-21T16:39:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbellrose](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@bbellrose](https://forums.suse.com/u/bbellrose)\
**Post date:** [April 21, 2021, 4:39pm UTC](https://forums.suse.com/t/sles-12-5-core-file-location-for-application/35566/1 "2021-04-21T16:39:24Z")

</div>

We have an in-house application that was written in C++. It used to write its application core files to an application log location. We are trying to deploy on SLES 12.5 and core files seem to be going to /var/lib/systemd/coredump. How do I override that for this application?

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [April 21, 2021, 5:32pm UTC](https://forums.suse.com/t/sles-12-5-core-file-location-for-application/35566/2 "2021-04-21T17:32:12Z")

</div>

@bbellrose Hi, not sure you can with systemd, have a look at coredump.conf you either have none, journal or external which puts in `/var/lib/systemd/coredump` location for use with cordumpctl.  
You could try a config file down in `/etc/systemd/coredump.conf.d/` based on `/etc/systemd/coredump.conf`

---

<div class="post-metadata">

**Author:** ![bbellrose](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@bbellrose](https://forums.suse.com/u/bbellrose)\
**Post date:** [April 21, 2021, 5:36pm UTC](https://forums.suse.com/t/sles-12-5-core-file-location-for-application/35566/3 "2021-04-21T17:36:25Z")

</div>

There is no coredump.conf. Ok, so core files controlled by systemd now in SLES12. I will see if I can find in documentation how to configure.

---

<div class="post-metadata">

**Author:** ![bbellrose](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@bbellrose](https://forums.suse.com/u/bbellrose)\
**Post date:** [April 21, 2021, 5:41pm UTC](https://forums.suse.com/t/sles-12-5-core-file-location-for-application/35566/4 "2021-04-21T17:41:50Z")

</div>

Hmm, this is not terribly convenient. I used to be able to get a coredump of an application in a custom log directory without having to make a system wide change however, now it appears that is not possibe:

/etc/systemd/coredump.conf with the Storage option:

```
Storage=noneÂcore dumps are logged in the journal, but not stored. This is useful to minimize collecting and storing sensitive information, for example for General Data Protection Regulation (GDPR) compliance.

Storage=externalÂcores are stored in /var/lib/systemd/coredump

Storage=journalÂcores are stored in the systemd journal
```
