Storing data logs on different disk

Hello,

I followed the following guide to install Graylog.
Graylog 5 Docker Tutorial Commands - Software & Web Applications - Lawrence Systems Forums. How do I store the log_data in different location? I added a second disk to the VM and mounted it as /indices. I modified the log_data path to “/indices:/usr/share/opensearch/data.” Graylog starts up without any errors but the data is still being stored on same disk as the O/S.

Thanks in advance.

ghasz

You want to modify the volumes setting in docker, here is my OpenSearch section of my docker compose file config where /mnt/garylog_logs is an NSF mount:

  opensearch:    
    image: opensearchproject/opensearch:2    
    container_name: opensearch    
    environment:    
      - "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g"    
      - "bootstrap.memory_lock=true"    
      - "discovery.type=single-node"    
      - "action.auto_create_index=false"    
      - "plugins.security.ssl.http.enabled=false"    
      - "plugins.security.disabled=true"    
    volumes:    
      - "/mnt/graylog_logs:/usr/share/opensearch/data"    
    ulimits:    
      memlock:    
        soft: -1    
        hard: -1    
      nofile:    
        soft: 65536    
        hard: 65536    
    ports:    
      - 9200:9200/tcp    
    networks:    
      - graynet    
    restart: unless-stopped