データの取り込みエラーの解消方法

このQ&Aのポイント
  • Splunk Enterpriseを使用している際に、アーカイブ形式のデータをLinux環境にアップロードした際にエラーが発生しました。
  • Windows環境では問題なく取り込めたため、解決方法を教えていただきたいです。
  • エラーメッセージ:「Error decompressing '/opt/splunk/var/run/splunk/dispach/xxxx/xxxx/xxx.gz' with command '/bin/sh -c 'gzip-cd -':PID XXXX exited with code 2」
回答を見る
  • ベストアンサー

データの取り込みエラー

会社でSplunk Enterpriseという複数のログを同じ場所に同じ形式で集めるソフトウェアを使用しています。アーカイブ形式のデータ(gzファイル)をLinux環境のSplunk Enterpriseにアップロードした際にエラーが出たので解消方法を教えていただきたいです。Windows環境だと問題なく取り込めました。エラーは以下の通りです。 「Error decompressing '/opt/splunk/var/run/splunk/dispach/xxxx/xxxx/xxx.gz' with command '/bin/sh -c "gzip-cd -":PID XXXX exited with code 2」

質問者が選んだベストアンサー

  • ベストアンサー
  • _kappe_
  • ベストアンサー率68% (1522/2216)
回答No.1

gzip-cdの部分に書き写し間違いはありませんか? gzip-cdというコマンドは普通のLinux環境には存在しないので、実行しようとしてエラーになるのは当然です。 正しくは、間にスペースの入った「gzip -cd」なのだろうと思います。

関連するQ&A

  • tar.gzファイルの解凍

    FreeBSDを使用しています。 ダウンロードした AAA.tar.gz というファイルを解凍したいのですが、 gunzip AAA.tar.gz とすると、 gunzip: AAA.tar.gz: not in gzip format と出ます。 そこで、 file AAA.tar.gz とすると、 AAA.gz: GNU tar archive と出ました。 ですので、 tar xzvf AAA.tar.gz としてみましたが、以下のように出ます。 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors どのようにして解凍すればよいのかご教授いただけませんでしょうか?よろしくお願いいたします。

  • Apache2.4.18 エラーについて

    Apache2.4.18で以下のエラーがでるのですが どのように直せば以下のエラーがでなくなりますでしょうか? [Sat Jan 02 03:54:16.698225 2016] [mpm_winnt:notice] [pid 4456:tid 364] AH00428: Parent: child process 5632 exited with status 255 -- Restarting. [Sat Jan 02 03:54:16.979025 2016] [mpm_winnt:notice] [pid 4456:tid 364] AH00455: Apache/2.4.18 (Win64) PHP/5.6.16 configured -- resuming normal operations [Sat Jan 02 03:54:16.979025 2016] [mpm_winnt:notice] [pid 4456:tid 364] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 11:13:29 [Sat Jan 02 03:54:16.979025 2016] [core:notice] [pid 4456:tid 364] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24' [Sat Jan 02 03:54:16.979025 2016] [mpm_winnt:notice] [pid 4456:tid 364] AH00418: Parent: Created child process 4792 [Sat Jan 02 03:54:17.930627 2016] [mpm_winnt:notice] [pid 4792:tid 256] AH00354: Child: Starting 150 worker threads.

  • /etc/cron.daily/logrotateのエラー対策

    debian3.1を使用しています。 本日このようなcron実行時のエラーメールが届きました。 どのように対応すればいいのでしょうか? /etc/cron.daily/logrotate: There was no data to process. error: error running postrotate script run-parts: /etc/cron.daily/logrotate exited with return code 1

  • CentOS7で外付けHDDがマウントできない。

    Error mounting /dev/sdc1 at /run/media/kouzou/51D711784E198DBA: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdc1" "/run/media/kouzou/51D711784E198DBA"' exited with non-zero exit status 32: mount: unknown filesystem type 'ntfs' 上記のようなメッセージが出てマウントできません。 何かいい方法はないでしょうか? ご回答のほど、宜しく御願い申し上げます。

  • Apache2.4.18 エラーについて

    Apache2.4.18 エラーについて Apacheは公式サイトからダウンロードし、 http://www.apachelounge.com/download/ windows7 64bit版の最新版を使っています Perl 5.20.2もPHP 5.6.16も使用しています エラーは以下になります [Sat Jan 02 20:31:07.726526 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00428: Parent: child process 6784 exited with status 255 -- Restarting. [Sat Jan 02 20:31:07.851327 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00455: Apache/2.4.18 (Win64) PHP/5.6.16 configured -- resuming normal operations [Sat Jan 02 20:31:07.851327 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 11:13:29 [Sat Jan 02 20:31:07.851327 2016] [core:notice] [pid 5656:tid 368] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24' [Sat Jan 02 20:31:07.851327 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00418: Parent: Created child process 652 [Sat Jan 02 20:31:08.506528 2016] [mpm_winnt:notice] [pid 652:tid 272] AH00354: Child: Starting 150 worker threads. [Sat Jan 02 20:31:15.313140 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00428: Parent: child process 652 exited with status 255 -- Restarting. [Sat Jan 02 20:31:15.406740 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00455: Apache/2.4.18 (Win64) PHP/5.6.16 configured -- resuming normal operations [Sat Jan 02 20:31:15.406740 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 11:13:29 [Sat Jan 02 20:31:15.406740 2016] [core:notice] [pid 5656:tid 368] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24' [Sat Jan 02 20:31:15.406740 2016] [mpm_winnt:notice] [pid 5656:tid 368] AH00418: Parent: Created child process 6312 [Sat Jan 02 20:31:15.905941 2016] [mpm_winnt:notice] [pid 6312:tid 272] AH00354: Child: Starting 150 worker threads. 色々と調べた結果以下二点をしたのですがエラーは解決されませんでした extra\httpd-mpm.confに以下を追加 # WinNT MPM # ThreadsPerChild: constant number of worker threads in the server process # MaxConnectionsPerChild: maximum number of connections a server process serves <IfModule mpm_winnt_module> ThreadsPerChild 150 MaxConnectionsPerChild 0 AcceptFilter http none AcceptFilter https none EnableSendfile off EnableMMAP off ThreadStackSize 8388608 </IfModule> httpd.confにある # Server-pool management (MPM specific) #Include conf/extra/httpd-mpm.conf コメントアウトを消す Include conf/extra/httpd-mpm.conf 他にこのエラーがでなくするにはどのうように改善すればいいのでしょうか?

  • tar圧縮ファイルが作成できず困っています。

    tarとgzipをパイプでつなげて使用すると、tar圧縮ファイルが正常に 作成できず困っています。(Solaris) *やりたいこと* ファイル一覧test.txtに記載されているファイルを一度に tar圧縮したい。(tar・gzip別々でなく) *コマンドライン* # tar cvfp - -I test.txt | gzip -c > test.tar.gz a aaa.txt 1K a bbb.txt 1K a ccc.txt 1K # ls -l test.tar.gz(←とりあえずファイルは作られている) -rw-r--r-- 1 root other 33235 5月 12日 10:03 test.tar.gz # gunzip test.tar.gz(←unzipもできる) gunzip: /usr/bin/gzip has 2 other links -- unchanged # ls -l test.tar -rw-r--r-- 1 root other 64076 5月 12日 10:03 test.tar # file test.tar(←この時点でおかしい。file種別がアーカイブじゃない) test.tar: ELF 32-ビット MSB 実行可能 SPARC バージョン 1[動的にリンクされています][取り除かれています] # tar xvfp test.tar(←エラーになる) tar: ディレクトリの検査合計エラーです。 # /bin/tar xvfp test.tar(←違うtarでやってみるとエラーがでる) tar: This does not look like a tar archive tar: Skipping to next header tar: Archive contains obsolescent base-64 headers tar: Read 2636 bytes from test.tar tar: Error exit delayed from previous errors 上記のような現象になって困っています。パイプ以降をcompressに するとふつうにいけるので、gzipがおかしいような気もするのですが。 サイトを検索するとみなさんGNUのgtarをお勧めしているようですが そちらもだめでした。 どなたか解決策をご存知の方がいたらご教授願います。

  • glib2アップデート後にFTPログイン不可

    はじめて投稿させて頂きます。 以下の環境でFTPサーバを構築しています。 【環境】 Red Hat Enterprise Linux Server 6.1 (for x86) kernel-2.6.32-431.23.3.el6.i686 vsftpd-2.3.5-2.el6.i686 glib2ライブラリをアップデートする必要があり、 アップデートを実施した所、FTPのログインができなくなる事象が発生しました。 > [root@xxxxx1 ~]# ftp -nv > ftp> open 127.0.0.1 > Connected to 127.0.0.1 (127.0.0.1). > 220 Unknown. > ftp> user USER_1 PASS_1 > 331 Please specify the password. > > Login failed. > ftp> exit > GThread-ERROR **: file gthread-posix.c: line 140 (g_thread_impl_init): error 'Operation not permitted' during 'pthread_getschedparam (pthread_self(), &policy, &sched)' FTPのログにも特にエラーと思われる内容も出力されていないため、 原因が分からず困っています。 【FTPログ】 > Thu Oct 22 16:31:12 2015 [pid 2] CONNECT: Client "127.0.0.1" > Thu Oct 22 16:31:12 2015 [pid 2] FTP response: Client "127.0.0.1", "220 Unknown." > Thu Oct 22 16:31:12 2015 [pid 2] FTP command: Client "127.0.0.1", "SYST" > Thu Oct 22 16:31:12 2015 [pid 2] FTP response: Client "127.0.0.1", "530 Please login with USER and PASS." > Thu Oct 22 16:31:36 2015 [pid 2] FTP command: Client "127.0.0.1", "USER USER_1" > Thu Oct 22 16:31:36 2015 [pid 2] [USER_1] FTP response: Client "127.0.0.1", "331 Please specify the password." > Thu Oct 22 16:31:36 2015 [pid 2] [USER_1] FTP command: Client "127.0.0.1", "PASS <password>" 【glib2のバージョン】 アップデート前: glib2-2.22.5-6.el6.i686 アップデート後: glib2-2.28.8-4.el6.i686 どなたかご教授の程宜しくお願い致します。

  • MySQLが起動しない

    このテーマの質問はいくつもあるのですが、解決に結びつくものがなく困っています。 もともと正常に動いていたのですが、再インストールしたところ起動しなくなりました。 再インストールは「yum -y install mysql-server」で行いました。 いろいろと試してはいるのですがうまくいきません。 どなたかお分かりの方がいらっしゃいましたら、ご教授いただけますでしょうか。 よろしくお願いします。 --------------------------  エラーログ -------------------------- 110709 16:46:38 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 110709 16:46:38 [Note] Plugin 'InnoDB' is disabled. 110709 16:46:38 [Note] Plugin 'FEDERATED' is disabled. 110709 16:46:38 [ERROR] Unknown/unsupported storage engine: InnoDB 110709 16:46:38 [ERROR] Aborting 110709 16:46:38 [Note] /usr/libexec/mysqld: Shutdown complete 110709 16:46:38 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended --------------------------  my.cnf -------------------------- [mysqld] skip-innodb max_connections=30 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock bind-address=127.0.0.1 # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 [mysql.server] user=mysql sort_buffer=512 net_buffer_length=8 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid --------------------------  php.ini (一部抜粋) -------------------------- mysql.default_socket = mysql.default_host = mysql.default_user = mysqli.default_port = 3306 --------------------------  サーバー環境 -------------------------- OS: Red Hat Enterprise Linux ES release 4 MySQL: MySQL: 5.5.9-2 [ファイル構成] /var/run/mysqld/mysqld.pid /var/lib/mysql/mysql.sock ※上記のファイルは所定のディレクトリだけでなく、サーバー上に存在しません。 /var/lib/mysql  -mysql/  -performance_schema/  -test/

  • php-5.3.3のconfigureでエラー

    RHEL6にPHP5.3.3をソースインストール(訳あってrpmを使えない)しようとすると 下記のエラーが出て困ってます。 configure: error: DBA: Could not find necessary header file(s). configureは下記を指定してます。RHEL5.5ではOKだったのに6では通らない。 インストールされているパッケージが原因かと思っているのですが、情報が 見当たらず前に進めません。 同じ状況になった方助言をお願いします。 OS:Red Hat Enterprise Linux Server release 6.0 (Santiago) PHP:php-5.3.3.tar.gz configure:./configure \ --enable-track-vars \ --enable-trans-sid \ --with-mysql=/usr/local/mysql \ --with-gdbm \ --disable-debug --with-apxs2=/usr/local/apache/bin/apxs \ --enable-mbstring \ --enable-mbstr-enc-trans \ --with-mcrypt=/usr/local/lib \ --with-ldap=/usr ※Apache2、mysql、mcryptは正常にインストールされてます。 宜しくお願いします。

  • ubuntuでバックアップデータをメールに添付して送りたい

    バックアップしたデータをtar.gz形式にしたものを、メールに添付して外部へ送りたいと考えているのですが、うまくいきません。 コマンドラインより /usr/bin/uuencode /var/www/backup/data.tar.gz sdata.tar.gz | mail -s 'backup' test@test.co.jp のような形で実行すると、エラーメッセージもでないのですが、メールも届きません。 そもそも、メールが届く環境を構築できているのかすらわからなくなってきてしまいました。 コマンドラインよりどのようなコマンドを打てば確認できますか? 初歩的な質問ですみません。