<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: journal.gz in #Random</title>
    <link>https://community.splunk.com/t5/Random/journal-gz/m-p/297971#M142</link>
    <description>&lt;P&gt;gzip is a binary file type.  There's some magic in how you can tell less to automatically "unzip" a gz file when it displays one, but it's not always turned on.&lt;/P&gt;

&lt;P&gt;Not really being a Splunk questions, please refer to this &lt;A href="https://askubuntu.com/questions/62655/less-doesnt-automatically-decompress-gzipped-files"&gt;Stack Overflow question&lt;/A&gt; for more information and a possible solution. &lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 12:19:42 GMT</pubDate>
    <dc:creator>Richfez</dc:creator>
    <dc:date>2017-07-07T12:19:42Z</dc:date>
    <item>
      <title>journal.gz</title>
      <link>https://community.splunk.com/t5/Random/journal-gz/m-p/297970#M141</link>
      <description>&lt;P&gt;when we are using less command into the journal.gz we see that non-text characters like ascii character, what is the reason of this??&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 06:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/journal-gz/m-p/297970#M141</guid>
      <dc:creator>gizemk00</dc:creator>
      <dc:date>2017-07-07T06:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: journal.gz</title>
      <link>https://community.splunk.com/t5/Random/journal-gz/m-p/297971#M142</link>
      <description>&lt;P&gt;gzip is a binary file type.  There's some magic in how you can tell less to automatically "unzip" a gz file when it displays one, but it's not always turned on.&lt;/P&gt;

&lt;P&gt;Not really being a Splunk questions, please refer to this &lt;A href="https://askubuntu.com/questions/62655/less-doesnt-automatically-decompress-gzipped-files"&gt;Stack Overflow question&lt;/A&gt; for more information and a possible solution. &lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 12:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/journal-gz/m-p/297971#M142</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-07-07T12:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: journal.gz</title>
      <link>https://community.splunk.com/t5/Random/journal-gz/m-p/297972#M143</link>
      <description>&lt;P&gt;As @rich7177 said, usually &lt;CODE&gt;*.gz&lt;/CODE&gt; files are compressed text files using &lt;CODE&gt;gzip&lt;/CODE&gt;.  If that is the case, do not use &lt;CODE&gt;less&lt;/CODE&gt; but instead use &lt;CODE&gt;zless&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;zless journal.gz
zcat journal.gz
zmore journal.gz #Display journal.gz one screen at a time
zgrep '1.2.3.4' journal.gz # Search journal.gz for 1.2.3.4 IP address using grep command like syntax:
egrep 'regex' journal.gz
egrep 'regex1|regex2' journal.gz
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Jul 2017 22:10:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/journal-gz/m-p/297972#M143</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-08T22:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: journal.gz</title>
      <link>https://community.splunk.com/t5/Random/journal-gz/m-p/297973#M144</link>
      <description>&lt;P&gt;Echoing @rich7177 and @woodcock and adding a little more detail.  &lt;/P&gt;

&lt;P&gt;(A)  it's a compressed file.  You have to uncompress it to read it.   Sometimes &lt;CODE&gt;less&lt;/CODE&gt; will silently decompress it for you.&lt;/P&gt;

&lt;P&gt;(B)  Even if you do uncompress it, there's going to be binary data in it.  Splunk's journal file has your raw events along with binary metadata about them.  What you'll see is clumps of plain text event, surrounded by clumps of binary.  That is just how it is, because that is how Splunk stores the data.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2017 18:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Random/journal-gz/m-p/297973#M144</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2017-07-09T18:47:01Z</dc:date>
    </item>
  </channel>
</rss>

