From Wiki:
The Long Goodbye (1973) is a film adaptation of Raymond Chandler's novel The Long Goodbye. Directed by Robert Altman from a screenplay by Leigh Brackett, the film stars Elliott Gould as Philip Marlowe, film noir veteran Sterling Hayden as Roger Wade and director Mark Rydell as the gangster Marty Augustine. The Long Goodbye holds up a mirror to the culture of the Hollywood lifestyle in the 1970s. The film is "a study of a moral and decent man cast adrift in a selfish, self-obsessed society where lives can be thrown away without a backward glance...and any notions of friendship and loyalty are meaningless"
Leigh Brackett was also one of the screenwriters on the 1946 film The Big Sleep, also based on a Chandler novel.
Unlike the novel, which is set in the 1950s, the film is set in the 1970s.